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
-
- Object
- Mixable<
LinearGradient> - Mix<
LinearGradient> - RemixLinearGradientMix
- Annotations
Constructors
-
RemixLinearGradientMix({List<
Color> ? colors, List<double> ? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform}) -
RemixLinearGradientMix.create({List<
Prop< ? colors, List<Color> >Prop< ? stops, Prop<double> >AlignmentGeometry> ? begin, Prop<AlignmentGeometry> ? end, Prop<TileMode> ? tileMode, Prop<GradientTransform> ? transform}) -
const
- RemixLinearGradientMix.value(LinearGradient value)
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, withothertaking 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