StopRange enum
Named easing categories mapped to normalized gradient stop pairs (0..1).
Each variant returns a two-element List of double stops suitable for any
gradient API that accepts a stops list (Flutter Gradient.stops, a CSS
gradient-string builder, an SVG <stop> generator, or a custom shader).
The values are fixed constants:
- StopRange.easeIn =>
[0, 0.5](front-loaded transition) - StopRange.easeOut =>
[0.5, 1](back-loaded transition) - StopRange.easeInOut =>
[0.25, 0.75](centered transition) - StopRange.linear =>
[0, 1](full-range, even transition)
Every pair is ascending, strictly increasing (no degenerate zero-width
pair that would produce a hard color edge), finite, and inside the inclusive
0..1 normalized range — see the test suite for the enforced invariants.
Example:
StopRange.easeInOut.stops; // [0.25, 0.75]
// Feed straight into any stops-accepting gradient API:
// LinearGradient(colors: [a, b], stops: StopRange.easeIn.stops);
Values
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stops
→ List<
double> -
The two normalized gradient stops (0..1) for this easing category.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited