activeTheme method

  1. @override
ThemeData activeTheme([
  1. KEY? themeName
])
override

Get the active ThemeData depending on ThemeMode.

If themeName is not given the current themeName is used.

If there is no dark theme, the corresponding light theme is return

Implementation

@override
ThemeData activeTheme([KEY? themeName]) {
  return _getTheme(themeName ?? state, null);
}