init method Null safety

Future<void> init()

Initialises the dark mode and background colour of the application by retrieving it from shared preferences.

Implementation

Future<void> init() async {
  await _getIsDarkMode();
  await _getBackgroundColour();
}