LinearPaint class

A gradient down the box by default, which is what a metal or a sunset face wants.

Inheritance

Constructors

LinearPaint({required List<SceneColor> colors, List<double>? stops, SceneAlignment begin = SceneAlignment.topCenter, SceneAlignment end = SceneAlignment.bottomCenter})
const

Properties

begin → SceneAlignment
final
colors → List<SceneColor>
finalinherited
end → SceneAlignment
final
hashCode → int
The hash code for this object.
no setteroverride
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 setterinherited
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.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
toWire() → Object
override
withStops(List<SceneColor> colors, List<double>? stops) → LinearPaint
This gradient with other colours at other positions, its shape kept — what every stop edit is.
override

Operators

operator ==(Object other) → bool
The equality operator.
override