ThemeWrapper class

A immutable contained by the NeumorhicTheme That will save the current definition of the theme It will be accessible to the childs widgets by an InheritedWidget

Constructors

ThemeWrapper({required EmergentThemeData theme, EmergentThemeData? darkTheme, ThemeMode themeMode = ThemeMode.system})
const

Properties

current → EmergentThemeData?
no setter
darkTheme → EmergentThemeData?
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → EmergentThemeData
final
themeMode → ThemeMode
final
useDark → bool
no setter

Methods

copyWith({EmergentThemeData? theme, EmergentThemeData? darkTheme, ThemeMode? currentTheme}) → ThemeWrapper
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.
override