ConditionalThemeBuilder class
Theme builder with conditional logic
- Inheritance
-
- Object
- CustomThemeBuilder
- ConditionalThemeBuilder
Constructors
- ConditionalThemeBuilder({required CustomThemeBuilder trueBuilder, required CustomThemeBuilder falseBuilder, required bool condition(), bool useMaterial3 = true})
-
const
Properties
- condition → bool Function()
-
final
-
customData
→ Map<
String, dynamic> ? -
Get the current custom data
no setteroverride
- falseBuilder → CustomThemeBuilder
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trueBuilder → CustomThemeBuilder
-
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