copyWith method
UICustomOutlinedButton
copyWith({
- Key? key,
- VoidCallback? onPressed,
- IconData? icon,
- Widget? iconWidget,
- IconData? labelIcon,
- Widget? labelIconWidget,
- String? label,
- Widget? labelChild,
- Widget? child,
- double? iconSize,
- double? gap,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? borderColor,
- EdgeInsetsGeometry? padding,
- UIMaterialButtonProps? material,
Implementation
UICustomOutlinedButton copyWith({
Key? key,
VoidCallback? onPressed,
IconData? icon,
Widget? iconWidget,
IconData? labelIcon,
Widget? labelIconWidget,
String? label,
Widget? labelChild,
Widget? child,
double? iconSize,
double? gap,
Color? foregroundColor,
Color? backgroundColor,
Color? borderColor,
EdgeInsetsGeometry? padding,
UIMaterialButtonProps? material,
}) {
return UICustomOutlinedButton(
key: key ?? this.key,
onPressed: onPressed ?? this.onPressed,
icon: icon ?? this.icon,
iconWidget: iconWidget ?? this.iconWidget,
labelIcon: labelIcon ?? this.labelIcon,
labelIconWidget: labelIconWidget ?? this.labelIconWidget,
label: label ?? this.label,
labelChild: labelChild ?? this.labelChild,
iconSize: iconSize ?? this.iconSize,
gap: gap ?? this.gap,
foregroundColor: foregroundColor ?? this.foregroundColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderColor: borderColor ?? this.borderColor,
padding: padding ?? this.padding,
material: material ?? this.material,
child: child ?? this.child,
);
}