ThemeModePlugin constructor
ThemeModePlugin({
- ThemeMode? initialTheme,
- 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),
);