BaseDataSet<T extends Entry>.withLabel constructor

BaseDataSet<T extends Entry>.withLabel(
  1. String label
)

Constructor with label.

@param label

Implementation

BaseDataSet.withLabel(String label) {
  _colors = List();
  _valueColors = List();

  // default color
  _colors.add(ui.Color.fromARGB(255, 140, 234, 255));
  _valueColors.add(ColorUtils.BLACK);
  this._label = label;
}