Gradient class Null safety
A shader (as used by Paint.shader) that renders a color gradient.
There are several types of gradients, represented by the various constructors on this class.
See also:
Constructors
- 
          Gradient.linear(Offset from, Offset to, List<Color> colors, [List<double> ? colorStops, TileMode tileMode = TileMode.clamp, Float64List? matrix4])
- 
          Creates a linear gradient from fromtoto.
- 
          Gradient.radial(Offset center, double radius, List<Color> colors, [List<double> ? colorStops, TileMode tileMode = TileMode.clamp, Float64List? matrix4, Offset? focal, double focalRadius = 0.0])
- 
          Creates a radial gradient centered at centerthat ends atradiusdistance from the center.
- 
          Gradient.sweep(Offset center, List<Color> colors, [List<double> ? colorStops, TileMode tileMode = TileMode.clamp, double startAngle = 0.0, double endAngle = math.pi * 2, Float64List? matrix4])
- 
          Creates a sweep gradient centered at centerthat starts atstartAngleand ends atendAngle.
Properties
- hashCode → int
- 
  The hash code for this object.
  read-onlyinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  read-onlyinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a non-existent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited