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:

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);
Inheritance
Available extensions

Values

easeIn → const StopRange

Front-loaded transition: stops at [0, 0.5].

easeOut → const StopRange

Back-loaded transition: stops at [0.5, 1].

easeInOut → const StopRange

Centered transition: stops at [0.25, 0.75].

linear → const StopRange

Full-range, even transition: stops at [0, 1].

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

Constants

values → const List<StopRange>
A constant List of the values in this enum, in order of their declaration.