ColorAttribute class Null safety

Color attribute

Inheritance
Implementers
Annotations

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
read-only, inherited
copyWith → $ColorAttributeCopyWith<ColorAttribute>
@JsonKey(ignore: true), read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value Color
Builds attribute into widget propety
read-only, override

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
@optionalTypeArgs, 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
@optionalTypeArgs, 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
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
@optionalTypeArgs, inherited

Operators

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