copyWith method

NumberInputProps copyWith({
  1. num? value,
  2. num? min,
  3. num? max,
  4. num? step,
  5. void onChanged(
    1. num
    )?,
  6. ComponentSize? size,
  7. bool? disabled,
  8. String? label,
  9. String? prefix,
  10. String? suffix,
  11. int? decimals,
  12. String? id,
  13. Map<String, String>? attributes,
})

Implementation

NumberInputProps copyWith({
  num? value,
  num? min,
  num? max,
  num? step,
  void Function(num)? onChanged,
  ComponentSize? size,
  bool? disabled,
  String? label,
  String? prefix,
  String? suffix,
  int? decimals,
  String? id,
  Map<String, String>? attributes,
}) {
  return NumberInputProps(
    value: value ?? this.value,
    min: min ?? this.min,
    max: max ?? this.max,
    step: step ?? this.step,
    onChanged: onChanged ?? this.onChanged,
    size: size ?? this.size,
    disabled: disabled ?? this.disabled,
    label: label ?? this.label,
    prefix: prefix ?? this.prefix,
    suffix: suffix ?? this.suffix,
    decimals: decimals ?? this.decimals,
    id: id ?? this.id,
    attributes: attributes ?? this.attributes,
  );
}