setDarkMode method

  1. @override
Future<void> setDarkMode(
  1. bool useDarkMode
)
override

Implementation

@override
Future<void> setDarkMode(bool useDarkMode) async {
  await methodChannel.invokeMethod(
    methods.setDarkMode,
    {"useDarkMode": useDarkMode},
  );
}