RemixLinearGradientMix class

Token-aware Mix representation of a CSS linear gradient.

Unlike Flutter's LinearGradientMix, each color and stop is resolved as an individual Mix property. This allows multiple design-token references in a single gradient.

Inheritance
Annotations

Properties

$begin → Prop<AlignmentGeometry>?
final
$colors → List<Prop<Color>>?
final
$end → Prop<AlignmentGeometry>?
final
$stops → List<Prop<double>>?
final
$tileMode → Prop<TileMode>?
final
$transform → Prop<GradientTransform>?
final
hashCode → int
Overrides the hash code getter to compute hash code based on properties.
no setterinherited
mergeKey → Object
The key used to identify compatible types for merging.
no setterinherited
props → List<Object?>
The properties based on which equality and hash code are computed.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool
Whether to use a detailed string representation of the object.
no setterinherited

Methods

getDiff(Equatable other) → Map<String, String>
Returns a map of properties that differ between this object and another.
inherited
merge(covariant RemixLinearGradientMix? other) → RemixLinearGradientMix
Merges this instance with other, with other taking precedence.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → LinearGradient
Resolves this to a concrete value using the provided context.
override
toString() → String
Overrides string representation for debugging and logging.
inherited

Operators

operator ==(Object other) → bool
Overrides the equality operator to compare based on the properties.
inherited