getThemeMode method

  1. @override
Future<NativeLensThemeMode> getThemeMode()
override

Returns the native system theme mode reported by the platform.

Implementation

@override
Future<NativeLensThemeMode> getThemeMode() async {
  final Object? themeMode = await methodChannel.invokeMethod<Object?>(
    'getThemeMode',
  );

  return _themeModeFromNative(themeMode);
}