RadialPaint class

A gradient out from a point, STRETCHED TO THE BOX: at radius 1 it reaches the edges on both axes, so on a wide headline it is an ellipse. Flutter's RadialGradient measures its radius against the shortest side instead, and on a 600×80 title that is a dot in the middle.

Inheritance

Constructors

RadialPaint({required List<SceneColor> colors, List<double>? stops, SceneAlignment center = SceneAlignment.center, double radius = 1})
const

Properties

center → SceneAlignment
final
colors → List<SceneColor>
finalinherited
hashCode → int
The hash code for this object.
no setteroverride
radius → double
In half-box units: 1 reaches the edge from the middle, on each axis.
final
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

copyWith({SceneAlignment? center, double? radius}) → RadialPaint
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) → RadialPaint
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