DrawableGradient class abstract

Basic information describing a gradient.

Implementers
Annotations

Constructors

DrawableGradient(List<double>? offsets, List<Color>? colors, {TileMode spreadMethod = TileMode.clamp, GradientUnitMode unitMode = GradientUnitMode.objectBoundingBox, Float64List? transform})
Initializes basic values.
const

Properties

colors List<Color>?
The colors to use for the gradient.
final
hashCode int
The hash code for this object.
no setterinherited
offsets List<double>?
Specifies where colors[i] begins in the gradient.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spreadMethod TileMode
The TileMode to use for this gradient.
final
transform Float64List?
The transform to apply to this gradient.
final
unitMode GradientUnitMode
The GradientUnitMode for any vectors specified by this gradient.
final

Methods

createShader(Rect bounds) Shader
Creates a Shader (i.e. a Gradient) from this object.
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