ColorSequence.fromStartAndEndColor(Color start, Color end)

Creates a new color sequence from a start and an end color.

Source

ColorSequence.fromStartAndEndColor(Color start, Color end) {
  colors = <Color>[start, end];
  colorStops = <double>[0.0, 1.0];
}