ColorAttribute class
Color attribute
- Inheritance
- Implementers
- Annotations
-
- @freezed
Constructors
- ColorAttribute(Color color)
-
Constructor
factory
- ColorAttribute.backgroundColor(Color color)
-
Background color
factory
- ColorAttribute.borderColor(Color color)
-
Border color
factory
- ColorAttribute.shadowColor(Color color)
-
Shadow color
factory
- ColorAttribute.textColor(Color color)
-
Text color
factory
Properties
- color → Color
-
no setterinherited
-
copyWith
→ $ColorAttributeCopyWith<
ColorAttribute> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Color
-
Builds attribute into widget propety
no setteroverride
Methods
-
map<
TResult extends Object?> (TResult $default(_ColorAttribute value), {required TResult backgroundColor(BackgroundColorAttribute value), required TResult textColor(TextColorAttribute value), required TResult shadowColor(ShadowColorAttribute value), required TResult borderColor(BorderColorAttribute value)}) → TResult -
inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_ColorAttribute value)?, {TResult backgroundColor(BackgroundColorAttribute value)?, TResult textColor(TextColorAttribute value)?, TResult shadowColor(ShadowColorAttribute value)?, TResult borderColor(BorderColorAttribute value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> (TResult $default(Color color)?, {TResult backgroundColor(Color color)?, TResult textColor(Color color)?, TResult shadowColor(Color color)?, TResult borderColor(Color color)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(Color color), {required TResult backgroundColor(Color color), required TResult textColor(Color color), required TResult shadowColor(Color color), required TResult borderColor(Color color)}) → TResult -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited