copyWith method

CycleButtonProps<T> copyWith({
  1. List<CycleOption<T>>? options,
  2. T? value,
  3. void onChanged(
    1. T value
    )?,
  4. CycleButtonVariant? variant,
  5. CycleButtonSize? size,
  6. bool? disabled,
  7. String? id,
  8. 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,
  );
}