CustomThemeExtension class

Inheritance

Constructors

CustomThemeExtension({required SmartColor primary, required SmartColor secondary, required SmartColor success, required SmartColor danger, required SmartColor warning, required SmartColor info, required SmartColor neutral, required SmartContrastColor contrast, required SmartTextStyles textStyles})

Properties

contrast SmartContrastColor
final
danger SmartColor
final
hashCode int
The hash code for this object.
no setterinherited
info SmartColor
final
neutral SmartColor
final
primary SmartColor
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary SmartColor
final
success SmartColor
final
textStyles SmartTextStyles
final
type Object
The extension's type.
no setterinherited
warning SmartColor
final

Methods

copyWith({SmartColor? primary, SmartColor? secondary, SmartColor? danger, SmartColor? warning, SmartColor? success, SmartColor? info, SmartContrastColor? contrast, SmartTextStyles? textStyles, SmartColor? neutral}) ThemeExtension<CustomThemeExtension>
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<CustomThemeExtension>? other, double t) ThemeExtension<CustomThemeExtension>
Linearly interpolate with another ThemeExtension object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
surface(BuildContext context) Color
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) CustomThemeExtension