augment method

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

Implementation

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