copyWith method

FdcEditorControlsStyle copyWith({
  1. Color? iconColor,
  2. Color? disabledIconColor,
  3. Color? activeIconColor,
  4. Color? checkboxFillColor,
  5. Color? checkboxCheckColor,
  6. Color? checkboxBorderColor,
  7. Color? checkboxDisabledFillColor,
  8. Color? checkboxDisabledCheckColor,
  9. Color? checkboxDisabledBorderColor,
  10. Color? switchThumbColor,
  11. Color? switchTrackColor,
  12. Color? switchDisabledThumbColor,
  13. Color? switchDisabledTrackColor,
  14. TextStyle? labelStyle,
  15. TextStyle? disabledLabelStyle,
})

Creates a copy with selected values replaced.

Implementation

FdcEditorControlsStyle copyWith({
  Color? iconColor,
  Color? disabledIconColor,
  Color? activeIconColor,
  Color? checkboxFillColor,
  Color? checkboxCheckColor,
  Color? checkboxBorderColor,
  Color? checkboxDisabledFillColor,
  Color? checkboxDisabledCheckColor,
  Color? checkboxDisabledBorderColor,
  Color? switchThumbColor,
  Color? switchTrackColor,
  Color? switchDisabledThumbColor,
  Color? switchDisabledTrackColor,
  TextStyle? labelStyle,
  TextStyle? disabledLabelStyle,
}) {
  return FdcEditorControlsStyle(
    iconColor: iconColor ?? this.iconColor,
    disabledIconColor: disabledIconColor ?? this.disabledIconColor,
    activeIconColor: activeIconColor ?? this.activeIconColor,
    checkboxFillColor: checkboxFillColor ?? this.checkboxFillColor,
    checkboxCheckColor: checkboxCheckColor ?? this.checkboxCheckColor,
    checkboxBorderColor: checkboxBorderColor ?? this.checkboxBorderColor,
    checkboxDisabledFillColor:
        checkboxDisabledFillColor ?? this.checkboxDisabledFillColor,
    checkboxDisabledCheckColor:
        checkboxDisabledCheckColor ?? this.checkboxDisabledCheckColor,
    checkboxDisabledBorderColor:
        checkboxDisabledBorderColor ?? this.checkboxDisabledBorderColor,
    switchThumbColor: switchThumbColor ?? this.switchThumbColor,
    switchTrackColor: switchTrackColor ?? this.switchTrackColor,
    switchDisabledThumbColor:
        switchDisabledThumbColor ?? this.switchDisabledThumbColor,
    switchDisabledTrackColor:
        switchDisabledTrackColor ?? this.switchDisabledTrackColor,
    labelStyle: labelStyle ?? this.labelStyle,
    disabledLabelStyle: disabledLabelStyle ?? this.disabledLabelStyle,
  );
}