ThemeManage<C extends ThemeManageColors> class abstract

Constructors

ThemeManage({required bool allowChangeThemeMode, required SetThemeMode setThemeMode, required GetThemeMode getThemeMode, required ThemeData light, required C lightColors, ThemeData? dark, C? darkColors})

Properties

allowChangeThemeMode bool
final
dark ThemeData?
final
darkColors → C?
final
getThemeMode GetThemeMode
final
hashCode int
The hash code for this object.
no setterinherited
light ThemeData
final
lightColors → C
final
mode ↔ Rx<ThemeMode>
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setThemeMode SetThemeMode
final

Methods

changeMode(ThemeMode themeMode) → void
Change theme mode
getCurrentBrightness() Brightness
Current brightness
getCurrentColors() → C
Current colors
getCurrentTheme() ThemeData
Current theme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

themeModeChart Map<int, ThemeMode>
final

Constants

DARK → const int
LIGHT → const int
SYSTEM → const int