copyWith method
LoadingOptions
copyWith({
- BoxConstraints? constraints,
- EdgeInsetsGeometry? padding,
- LoadingBuilder? builder,
- ProgressIndicatorOptions? progressIndicator,
- TextStyle? textStyle,
- GestureTapCallback? onLoadingTap,
- bool? ignoring,
- bool? absorbing,
- double? gaussian,
- AlignmentGeometry? alignment,
- GestureTapCallback? onModalTap,
- Color? backgroundColor,
- Color? foregroundColor,
- double? elevation,
- Color? shadowColor,
- ShapeBorder? shape,
- bool? borderOnForeground,
- BorderRadiusGeometry? borderRadius,
- bool? safeLTRB,
- bool? resizeToAvoidBottomInset,
- Duration? insetAnimationDuration,
- Curve? insetAnimationCurve,
Implementation
LoadingOptions copyWith({
BoxConstraints? constraints,
EdgeInsetsGeometry? padding,
LoadingBuilder? builder,
ProgressIndicatorOptions? progressIndicator,
TextStyle? textStyle,
GestureTapCallback? onLoadingTap,
bool? ignoring,
bool? absorbing,
double? gaussian,
AlignmentGeometry? alignment,
GestureTapCallback? onModalTap,
Color? backgroundColor,
Color? foregroundColor,
double? elevation,
Color? shadowColor,
ShapeBorder? shape,
bool? borderOnForeground,
BorderRadiusGeometry? borderRadius,
bool? safeLTRB,
bool? resizeToAvoidBottomInset,
Duration? insetAnimationDuration,
Curve? insetAnimationCurve,
}) =>
LoadingOptions(
padding: padding ?? this.padding,
constraints: constraints ?? this.constraints,
onLoadingTap: onLoadingTap ?? this.onLoadingTap,
builder: builder ?? this.builder,
progressIndicator: progressIndicator ?? this.progressIndicator,
foregroundColor: foregroundColor ?? this.foregroundColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
ignoring: ignoring ?? this.ignoring,
absorbing: absorbing ?? this.absorbing,
gaussian: gaussian ?? this.gaussian,
alignment: alignment ?? this.alignment,
onModalTap: onModalTap ?? this.onModalTap,
textStyle: textStyle ?? this.textStyle,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
borderRadius: borderRadius ?? this.borderRadius,
borderOnForeground: borderOnForeground ?? this.borderOnForeground,
shape: shape ?? this.shape,
safeLTRB: safeLTRB ?? this.safeLTRB,
resizeToAvoidBottomInset:
resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
insetAnimationDuration:
insetAnimationDuration ?? this.insetAnimationDuration,
insetAnimationCurve: insetAnimationCurve ?? this.insetAnimationCurve,
);