CallbackThemeBuilder class

Custom theme builder using callbacks

Inheritance

Constructors

CallbackThemeBuilder({required ThemeBuilderCallback themeBuilder, ColorSchemeBuilderCallback? colorSchemeBuilder, bool useMaterial3 = true, Map<String, dynamic>? customData})
const

Properties

colorSchemeBuilder → ColorSchemeBuilderCallback?
final
customData → Map<String, dynamic>?
Get the current custom data
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
themeBuilder → ThemeBuilderCallback
final
useMaterial3 → bool
final

Methods

buildDarkTheme() → ThemeData
Build a dark theme
override
buildLightTheme() → ThemeData
Build a light theme
override
buildTheme(Brightness brightness) → ThemeData
Build a theme with custom brightness
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateCustomData(Map<String, dynamic> newData) → void
Update custom data
override

Operators

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