copyWith method

UICustomOutlinedButton copyWith({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. IconData? icon,
  4. Widget? iconWidget,
  5. IconData? labelIcon,
  6. Widget? labelIconWidget,
  7. String? label,
  8. Widget? labelChild,
  9. Widget? child,
  10. double? iconSize,
  11. double? gap,
  12. Color? foregroundColor,
  13. Color? backgroundColor,
  14. Color? borderColor,
  15. EdgeInsetsGeometry? padding,
  16. 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,
  );
}