copyWith method

ToggleButtonProps copyWith({
  1. bool? value,
  2. void onChanged(
    1. bool value
    )?,
  3. String? label,
  4. Widget? icon,
  5. CycleButtonSize? size,
  6. bool? disabled,
  7. String? id,
  8. Map<String, String>? attributes,
})

Implementation

ToggleButtonProps copyWith({
  bool? value,
  void Function(bool value)? onChanged,
  String? label,
  Widget? icon,
  CycleButtonSize? size,
  bool? disabled,
  String? id,
  Map<String, String>? attributes,
}) {
  return ToggleButtonProps(
    value: value ?? this.value,
    onChanged: onChanged ?? this.onChanged,
    label: label ?? this.label,
    icon: icon ?? this.icon,
    size: size ?? this.size,
    disabled: disabled ?? this.disabled,
    id: id ?? this.id,
    attributes: attributes ?? this.attributes,
  );
}