colorStops property

Map<num, String>? get colorStops

Gets or sets a Map holding all of the color stops used in this gradient, where the key is a number, the fractional distance between 0 and 1 (inclusive), and where the corresponding value is a color string.

Call #addColorStop in order to add color stops to this brush. This property value may be null if no gradient stops have been defined.

Implementation

_i3.Map<_i2.num, _i2.String>? get colorStops => _i4.getProperty(
      this,
      'colorStops',
    );
set colorStops (Map<num, String>? value)

Implementation

set colorStops(_i3.Map<_i2.num, _i2.String>? value) {
  _i4.setProperty(
    this,
    'colorStops',
    value ?? _i5.undefined,
  );
}