augment method

List<Color> augment(
  1. int newLength, {
  2. List<double>? stops,
  3. ColorSpace? colorSpace,
  4. bool invert = false,
})

Implementation

List<Color> augment(
  int newLength, {
  List<double>? stops,
  ColorSpace? colorSpace,
  bool invert = false,
}) {
  assert(stops == null || stops.length == length);
  return toColorModels().cast<ColorModel>().augment(newLength,
      stops: stops, colorSpace: colorSpace, invert: invert);
}