GradientSwatch constructor

const GradientSwatch(
  1. Swatch swatch, {
  2. bool growable = false,
})

A color gradient from a color Swatch.

growable wheather or not to create a list that can grow (expand).

Implementation

const GradientSwatch(Swatch swatch, {bool growable = false})
    : _swatch = swatch,
      _growable = growable;