setColor1 method

void setColor1(
  1. Color color
)

Sets the one and ONLY color that should be used for this DataSet. Internally, this recreates the colors array and adds the specified color.

@param color

Implementation

void setColor1(ui.Color color) {
  resetColors();
  _colors!.add(color);
}