DrawableLinearGradient class
Represents the data needed to create a Gradient.linear.
- Inheritance
-
- Object
- DrawableGradient
- DrawableLinearGradient
- Annotations
Constructors
-
DrawableLinearGradient({required Offset from, required Offset to, required List<
double> offsets, required List<Color> colors, required TileMode spreadMethod, required GradientUnitMode unitMode, Float64List? transform}) -
Creates a new DrawableLinearGradient.
const
Properties
-
colors
→ List<
Color> ? -
The colors to use for the gradient.
finalinherited
- from → Offset
-
The starting offset of this gradient.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
offsets
→ List<
double> ? -
Specifies where
colors[i]
begins in the gradient.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spreadMethod → TileMode
-
The TileMode to use for this gradient.
finalinherited
- to → Offset
-
The ending offset of this gradient.
final
- transform → Float64List?
-
The transform to apply to this gradient.
finalinherited
- unitMode → GradientUnitMode
-
The GradientUnitMode for any vectors specified by this gradient.
finalinherited
Methods
-
createShader(
Rect bounds) → Shader -
Creates a Shader (i.e. a Gradient) from this object.
override
-
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