copyWith method

FABProps copyWith({
  1. Widget? icon,
  2. String? label,
  3. void onPressed()?,
  4. ColorVariant? color,
  5. ComponentSize? size,
  6. bool? disabled,
  7. FABPosition? position,
  8. String? tooltip,
  9. String? id,
  10. Map<String, String>? attributes,
})

Implementation

FABProps copyWith({
  Widget? icon,
  String? label,
  void Function()? onPressed,
  ColorVariant? color,
  ComponentSize? 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,
    color: color ?? this.color,
    size: size ?? this.size,
    disabled: disabled ?? this.disabled,
    position: position ?? this.position,
    tooltip: tooltip ?? this.tooltip,
    id: id ?? this.id,
    attributes: attributes ?? this.attributes,
  );
}