MantleGradient class
Palette-keyed linear gradient, matching Mantine's MantineGradient.
- Annotations
Constructors
Properties
- deg → double
-
Angle in degrees, clockwise from left-to-right.
final
- from → String
-
Palette name for the start color (a key of
theme.colors).final - fromShade → int
-
Shade index of from (0–9).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to → String
-
Palette name for the end color.
final
- toShade → int
-
Shade index of to (0–9).
final
Methods
-
lerp(
MantleGradient other, double t) → MantleGradient -
Linearly interpolates angles; palette names snap at
t == 0.5. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
MantleColors colors) → LinearGradient -
Resolves this token against
colorsinto a LinearGradient. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override