resetColors method

void resetColors()

Resets all colors of this DataSet and recreates the colors array.

Implementation

void resetColors() {
  _colors ??= List.empty(growable: true);
  _colors!.clear();
}