updateTheme method

  1. @override
Future<void> updateTheme(
  1. BabylAITheme theme
)
override

Update theme

Implementation

@override
Future<void> updateTheme(BabylAITheme theme) async {
  await methodChannel.invokeMethod<void>('updateTheme', {
    'theme': theme == BabylAITheme.dark ? 'dark' : 'light',
  });
}