copyWith method
NumberInputProps
copyWith(
{ - num? value,
- num? min,
- num? max,
- num? step,
- void onChanged(
- num
)?,
- ComponentSize? size,
- bool? disabled,
- String? label,
- String? prefix,
- String? suffix,
- int? decimals,
- String? id,
- 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,
);
}