copyWith method
FABProps
copyWith(
{ - Component? icon,
- String? label,
- void onPressed()?,
- FABVariant? variant,
- FABSize? size,
- bool? disabled,
- FABPosition? position,
- String? tooltip,
- String? id,
- Map<String, String>? attributes,
})
Implementation
FABProps copyWith({
Component? icon,
String? label,
void Function()? onPressed,
FABVariant? variant,
FABSize? size,
bool? disabled,
FABPosition? position,
String? tooltip,
String? id,
Map<String, String>? attributes,
}) {
return FABProps(
icon: icon ?? this.icon,
label: label ?? this.label,
onPressed: onPressed ?? this.onPressed,
variant: variant ?? this.variant,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
position: position ?? this.position,
tooltip: tooltip ?? this.tooltip,
id: id ?? this.id,
attributes: attributes ?? this.attributes,
);
}