copyWith method
Implementation
AppButtonConfig copyWith({
Widget? child,
AppButtonType? type,
FutureOr<void> Function()? onPressed,
FutureOr<void> Function()? onPressedDisabled,
bool? popFirst,
int? flex,
}) {
return AppButtonConfig(
child: child ?? this.child,
type: type ?? this.type,
onPressed: onPressed ?? this.onPressed,
onPressedDisabled: onPressedDisabled ?? this.onPressedDisabled,
popFirst: popFirst ?? this.popFirst,
flex: flex ?? this.flex,
);
}