ColorSequence constructor

ColorSequence({
  1. required List<Color> colors,
  2. required List<double> stops,
})

Creates a new color sequence from a list of colors and a list of stops.

Implementation

ColorSequence({
  required this.colors,
  required this.stops,
}) {
  assert(colors.length == stops.length);
}