copyWith method

FABProps copyWith({
  1. Component? icon,
  2. String? label,
  3. void onPressed()?,
  4. FABVariant? variant,
  5. FABSize? size,
  6. bool? disabled,
  7. FABPosition? position,
  8. String? tooltip,
  9. String? id,
  10. 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,
  );
}