setBackgroundColour method Null safety

Future<void> setBackgroundColour(
  1. Color backgroundColour
)

Sets the background colour.

Implementation

Future<void> setBackgroundColour(Color backgroundColour) async {
  SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
  sharedPreferences.setInt(backgroundColourKey, backgroundColour.value);
}