ColorSequence.fromStartAndEndColor constructor

ColorSequence.fromStartAndEndColor({
  1. required Color start,
  2. required Color end,
})

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

Implementation

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