ThemeModePlugin constructor

ThemeModePlugin({
  1. ThemeMode? initialTheme,
  2. ValueSetter<ThemeMode>? onThemeChanged,
})

Implementation

ThemeModePlugin({
  ThemeMode? initialTheme,
  ValueSetter<ThemeMode>? onThemeChanged,
}) : super(
        icon: _buildIcon,
        wrapperBuilder: (context, widget) => _buildWrapper(
          context,
          widget,
          initialTheme,
        ),
        onPressed: (context) => _onPressed(context, onThemeChanged),
      );