Gradient class
A shader (as used by Paint.shader) that renders a color gradient.
There are two useful types of gradients, created by new Gradient.linear and new Gradient.radial.
Constructors
-
Gradient.linear(Offset from, Offset to, List<
Color> colors, [ List<double> colorStops, TileMode tileMode = TileMode.clamp ]) -
Creates a linear gradient from
from
toto
. [...] -
Gradient.radial(Offset center, double radius, List<
Color> colors, [ List<double> colorStops, TileMode tileMode = TileMode.clamp, Float64List matrix4 ]) -
Creates a radial gradient centered at
center
that ends atradius
distance from the center. [...]
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited