copyWith method

AppButtonConfig copyWith({
  1. Widget? child,
  2. AppButtonType? type,
  3. FutureOr<void> onPressed()?,
  4. FutureOr<void> onPressedDisabled()?,
  5. bool? popFirst,
  6. int? flex,
})

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,
  );
}