setThemeMode method

  1. @override
Future<void> setThemeMode(
  1. IntercomTheme theme
)
override

The theme mode controls whether the SDK displays in light mode, dark mode, or follows the system theme. The theme selection will be reset when the app restarts i.e. You can override the server-provided theme setting for the current session only.

Implementation

@override
Future<void> setThemeMode(IntercomTheme theme) async {
  await _channel.invokeMethod('setThemeMode', {'theme': theme.name});
}