SceneGradient class sealed
The three gradients, and what they share: colours, where each one sits, and the even spread a missing position means.
- Inheritance
-
- Object
- ScenePaint
- SceneGradient
- Implementers
Properties
-
colors
→ List<
SceneColor> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
resolvedStops
→ List<
double> -
stops when they give one position per colour, otherwise the even
spread. The engine refuses any other shape, so this is what reaches it.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stops
→ List<
double> ? -
One position per colour, 0..1 along the gradient. Null spreads the
colours evenly — what the file omits, and what the editor writes out
the first time a stop is moved.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toWire(
) → Object -
inherited
-
withStops(
List< SceneColor> colors, List<double> ? stops) → SceneGradient - This gradient with other colours at other positions, its shape kept — what every stop edit is.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited