ColorStop constructor

ColorStop({
  1. required Color color,
  2. required double position,
})

Creates a ColorStop

Parameters:

  • color — The color of this ColorStop.
  • position — The position of this ColorStop. The value must be in the interval [0.0, 1.0].