copyWith method
CycleButtonProps<T>
copyWith({
- List<
CycleOption< ? options,T> > - T? value,
- void onChanged(
- T value
- CycleButtonVariant? variant,
- CycleButtonSize? size,
- bool? disabled,
- String? id,
- Map<
String, String> ? attributes,
Implementation
CycleButtonProps<T> copyWith({
List<CycleOption<T>>? options,
T? value,
void Function(T value)? onChanged,
CycleButtonVariant? variant,
CycleButtonSize? size,
bool? disabled,
String? id,
Map<String, String>? attributes,
}) {
return CycleButtonProps<T>(
options: options ?? this.options,
value: value ?? this.value,
onChanged: onChanged ?? this.onChanged,
variant: variant ?? this.variant,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
id: id ?? this.id,
attributes: attributes ?? this.attributes,
);
}