copyWith method

ScatterLabelSettings copyWith({
  1. bool? showLabel,
  2. GetLabelTextStyleFunction? getLabelTextStyleFunction,
  3. GetLabelFunction? getLabelFunction,
  4. TextDirection? textDirection,
})

Implementation

ScatterLabelSettings copyWith({
  bool? showLabel,
  GetLabelTextStyleFunction? getLabelTextStyleFunction,
  GetLabelFunction? getLabelFunction,
  TextDirection? textDirection,
}) {
  return ScatterLabelSettings(
    showLabel: showLabel ?? this.showLabel,
    getLabelTextStyleFunction:
        getLabelTextStyleFunction ?? this.getLabelTextStyleFunction,
    getLabelFunction: getLabelFunction ?? this.getLabelFunction,
    textDirection: textDirection ?? this.textDirection,
  );
}