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.

Inheritance

Constructors

Gradient()
Creates a Gradient object that is not initialized. [...]
Gradient.linear(Offset from, Offset to, List<Color> colors, [ List<double> colorStops = null, TileMode tileMode = TileMode.clamp ])
Creates a linear gradient from from to to. [...]
Gradient.radial(Offset center, double radius, List<Color> colors, [ List<double> colorStops = null, TileMode tileMode = TileMode.clamp ])
Creates a radial gradient centered at center that ends at radius 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 ==(other) bool
The equality operator. [...]
inherited