const LinearGradient({FractionalOffset begin: FractionalOffset.centerLeft, FractionalOffset end: FractionalOffset.centerRight, List<Color> colors, List<double> stops, TileMode tileMode: TileMode.clamp })

Creates a linear graident.

The colors argument must not be null. If stops is non-null, it must have the same length as colors.

Source

const LinearGradient({
  this.begin: FractionalOffset.centerLeft,
  this.end: FractionalOffset.centerRight,
  this.colors,
  this.stops,
  this.tileMode: TileMode.clamp
});