ThemeConfig<T extends ControlTheme> class

Mixed in types

Constructors

ThemeConfig({InitFactory<T>? builder, dynamic initTheme, required Map<dynamic, ThemeInitializer<T>> themes})
builder - Initializer of ControlTheme. Set this initializer only if providing custom, extended version of ControlTheme.
const

Properties

builder InitFactory<T>?
final
hashCode int
The hash code for this object.
no setterinherited
initializer InitFactory<T>
no setter
initTheme → dynamic
final
prefs ControlPrefs
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
themes Map<dynamic, ThemeInitializer<T>>
final

Methods

contains(dynamic key) bool
copyWith({dynamic theme}) ThemeConfig<T>
getCurrentTheme(T control) ThemeData
getSystemTheme(T control) ThemeData
getTheme(dynamic key, T control) ThemeData
isPreferred(dynamic key) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetPreferred() → void
setAsPreferred() → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

platformBrightness Brightness
no setter
preferredTheme String
no setter

Constants

preference_key → const String