copyWith method

RadarDataSet copyWith({
  1. List<RadarEntry>? dataEntries,
  2. Color? fillColor,
  3. Color? borderColor,
  4. double? borderWidth,
  5. double? entryRadius,
})

Copies current RadarDataSet to a new RadarDataSet, and replaces provided values.

Implementation

RadarDataSet copyWith({
  List<RadarEntry>? dataEntries,
  Color? fillColor,
  Color? borderColor,
  double? borderWidth,
  double? entryRadius,
}) =>
    RadarDataSet(
      dataEntries: dataEntries ?? this.dataEntries,
      fillColor: fillColor ?? this.fillColor,
      borderColor: borderColor ?? this.borderColor,
      borderWidth: borderWidth ?? this.borderWidth,
      entryRadius: entryRadius ?? this.entryRadius,
    );