copyWith method

WebApiModulesSettingsWidgetSettingsWidgetWidgetDataSet copyWith({
  1. String? label,
  2. List<double>? data,
  3. List<String>? backgroundColor,
  4. List<String>? borderColor,
  5. int? borderWidth,
})

Implementation

WebApiModulesSettingsWidgetSettingsWidgetWidgetDataSet copyWith(
    {String? label,
    List<double>? data,
    List<String>? backgroundColor,
    List<String>? borderColor,
    int? borderWidth}) {
  return WebApiModulesSettingsWidgetSettingsWidgetWidgetDataSet(
      label: label ?? this.label,
      data: data ?? this.data,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      borderColor: borderColor ?? this.borderColor,
      borderWidth: borderWidth ?? this.borderWidth);
}