A 2D radial gradient.

Inheritance

Constructors

RadialGradient({FractionalOffset center: FractionalOffset.center, double radius: 0.5, List<Color> colors, List<double> stops, TileMode tileMode: TileMode.clamp })

Creates a radial graident.

const

Properties

center FractionalOffset

The center of the gradient, as an offset into the unit square describing the gradient which will be mapped onto the paint box.

read-only
colors List<Color>

The colors the gradient should obtain at each of the stops.

read-only
hashCode int

read-only
radius double

The radius of the gradient, as a fraction of the shortest side of the paint box.

read-only
stops List<double>

A list of values from 0.0 to 1.0 that denote concentric rings.

read-only
tileMode TileMode

How this gradient should tile the plane.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

Methods

createShader(Rect rect) Shader

Creates a Shader for this gradient to fill the given rect.

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited