addColor method

void addColor(
  1. Color color
)

Adds a color to the colors array of the DataSet.

@param color

Implementation

void addColor(ui.Color color) {
  _colors ??= List.empty(growable: true);
  _colors!.add(color);
}