copyWith method

ModalBoxOptions copyWith({
  1. GestureTapCallback? onModalTap,
  2. Color? backgroundColor,
  3. Color? foregroundColor,
  4. bool? ignoring,
  5. bool? absorbing,
  6. double? gaussian,
  7. AlignmentGeometry? alignment,
  8. TextStyle? textStyle,
  9. BorderRadiusGeometry? borderRadius,
  10. MaterialType? type,
  11. double? elevation,
  12. Color? shadowColor,
  13. ShapeBorder? shape,
  14. bool? borderOnForeground,
  15. BoxConstraints? constraints,
  16. bool? safeLTRB,
  17. bool? resizeToAvoidBottomInset,
  18. Duration? insetAnimationDuration,
  19. Curve? insetAnimationCurve,
})

Implementation

ModalBoxOptions copyWith({
  GestureTapCallback? onModalTap,
  Color? backgroundColor,
  Color? foregroundColor,
  bool? ignoring,
  bool? absorbing,
  double? gaussian,
  AlignmentGeometry? alignment,
  TextStyle? textStyle,
  BorderRadiusGeometry? borderRadius,
  MaterialType? type,
  double? elevation,
  Color? shadowColor,
  ShapeBorder? shape,
  bool? borderOnForeground,
  BoxConstraints? constraints,
  bool? safeLTRB,
  bool? resizeToAvoidBottomInset,
  Duration? insetAnimationDuration,
  Curve? insetAnimationCurve,
}) =>
    ModalBoxOptions(
      alignment: alignment ?? this.alignment,
      onModalTap: onModalTap ?? this.onModalTap,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      ignoring: ignoring ?? this.ignoring,
      absorbing: absorbing ?? this.absorbing,
      gaussian: gaussian ?? this.gaussian,
      type: type ?? this.type,
      elevation: elevation ?? this.elevation,
      shadowColor: shadowColor ?? this.shadowColor,
      textStyle: textStyle ?? this.textStyle,
      borderRadius: borderRadius ?? this.borderRadius,
      shape: shape ?? this.shape,
      borderOnForeground: borderOnForeground ?? this.borderOnForeground,
      foregroundColor: foregroundColor ?? this.foregroundColor,
      constraints: constraints ?? this.constraints,
      safeLTRB: safeLTRB ?? this.safeLTRB,
      resizeToAvoidBottomInset:
          resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
      insetAnimationDuration:
          insetAnimationDuration ?? this.insetAnimationDuration,
      insetAnimationCurve: insetAnimationCurve ?? this.insetAnimationCurve,
    );