ThemeHolder<TTheme extends ExtendedTheme> class
A controller that stores a link to theme and allows you to update it
Constructors
-
ThemeHolder(_ThemeScopeState<
TTheme> _facilityState)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → TTheme
-
Current theme. Use this in the Widget tree for getting of theme properties
no setter
- themeId → String?
-
Current theme identifier if you use predefined map of themes
Equals null if you update theme in runtime by method updateTheme
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTheme(
TTheme theme) → void - Update the theme by theme object
-
updateThemeById(
String themeId) → void - Update the theme by the identifier that is contained in the map of themes you have defined
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of<
TTheme extends ExtendedTheme> (BuildContext context) → ThemeHolder< TTheme> - Link to theme controller object, use this for managing themes
-
themeOf<
TTheme extends ExtendedTheme> (BuildContext context) → TTheme - Current theme, use this in the Widget tree for getting theme properties