copyWith method
PlaceholderSetting
copyWith({
- bool? useAnimatedSwitcher,
- Duration? switchDuration,
- Duration? switchReverseDuration,
- Curve? switchInCurve,
- Curve? switchOutCurve,
- AnimatedSwitcherTransitionBuilder? switchTransitionBuilder,
- AnimatedSwitcherLayoutBuilder? switchLayoutBuilder,
- String? loadingText,
- String? nothingText,
- String? nothingRetryText,
- String? unknownErrorText,
- String? errorRetryText,
- IconData? nothingIcon,
- IconData? errorIcon,
- EdgeInsets? textPadding,
- EdgeInsets? iconPadding,
- EdgeInsets? buttonPadding,
- EdgeInsets? progressPadding,
- EdgeInsets? wholePaddingUnlessNormal,
- TextStyle? textStyle,
- int? textMaxLines,
- TextOverflow? textOverflow,
- TextStyle? buttonTextStyle,
- ButtonStyle? buttonStyle,
- double? iconSize,
- Color? iconColor,
- double? progressSize,
- double? progressStrokeWidth,
- bool? showLoadingProgress,
- bool? showLoadingText,
- bool? showNothingIcon,
- bool? showNothingText,
- bool? showNothingRetry,
- bool? showErrorIcon,
- bool? showErrorText,
- bool? showErrorRetry,
- PlaceholderWidgetBuilder? customLoadingProgressBuilder,
- PlaceholderWidgetBuilder? customLoadingTextBuilder,
- PlaceholderWidgetBuilder? customNothingIconBuilder,
- PlaceholderWidgetBuilder? customNothingTextBuilder,
- PlaceholderVoidCallbackWidgetBuilder? customNothingRetryBuilder,
- PlaceholderWidgetBuilder? customErrorIconBuilder,
- PlaceholderWidgetBuilder? customErrorTextBuilder,
- PlaceholderVoidCallbackWidgetBuilder? customErrorRetryBuilder,
- PlaceholderWidgetBuilderWidgetBuilder? customNormalStateBuilder,
- PlaceholderWidgetBuilderWidgetBuilder? customSwitcherBuilder,
Creates a copy of this value but with given fields replaced with the new values.
Implementation
PlaceholderSetting copyWith({
bool? useAnimatedSwitcher,
Duration? switchDuration,
Duration? switchReverseDuration,
Curve? switchInCurve,
Curve? switchOutCurve,
AnimatedSwitcherTransitionBuilder? switchTransitionBuilder,
AnimatedSwitcherLayoutBuilder? switchLayoutBuilder,
String? loadingText,
String? nothingText,
String? nothingRetryText,
String? unknownErrorText,
String? errorRetryText,
IconData? nothingIcon,
IconData? errorIcon,
EdgeInsets? textPadding,
EdgeInsets? iconPadding,
EdgeInsets? buttonPadding,
EdgeInsets? progressPadding,
EdgeInsets? wholePaddingUnlessNormal,
TextStyle? textStyle,
int? textMaxLines,
TextOverflow? textOverflow,
TextStyle? buttonTextStyle,
ButtonStyle? buttonStyle,
double? iconSize,
Color? iconColor,
double? progressSize,
double? progressStrokeWidth,
bool? showLoadingProgress,
bool? showLoadingText,
bool? showNothingIcon,
bool? showNothingText,
bool? showNothingRetry,
bool? showErrorIcon,
bool? showErrorText,
bool? showErrorRetry,
PlaceholderWidgetBuilder? customLoadingProgressBuilder,
PlaceholderWidgetBuilder? customLoadingTextBuilder,
PlaceholderWidgetBuilder? customNothingIconBuilder,
PlaceholderWidgetBuilder? customNothingTextBuilder,
PlaceholderVoidCallbackWidgetBuilder? customNothingRetryBuilder,
PlaceholderWidgetBuilder? customErrorIconBuilder,
PlaceholderWidgetBuilder? customErrorTextBuilder,
PlaceholderVoidCallbackWidgetBuilder? customErrorRetryBuilder,
PlaceholderWidgetBuilderWidgetBuilder? customNormalStateBuilder,
PlaceholderWidgetBuilderWidgetBuilder? customSwitcherBuilder,
}) {
return PlaceholderSetting(
useAnimatedSwitcher: useAnimatedSwitcher ?? this.useAnimatedSwitcher,
switchDuration: switchDuration ?? this.switchDuration,
switchReverseDuration: switchReverseDuration ?? this.switchReverseDuration,
switchInCurve: switchInCurve ?? this.switchInCurve,
switchOutCurve: switchOutCurve ?? this.switchOutCurve,
switchTransitionBuilder: switchTransitionBuilder ?? this.switchTransitionBuilder,
switchLayoutBuilder: switchLayoutBuilder ?? this.switchLayoutBuilder,
loadingText: loadingText ?? this.loadingText,
nothingText: nothingText ?? this.nothingText,
nothingRetryText: nothingRetryText ?? this.nothingRetryText,
unknownErrorText: unknownErrorText ?? this.unknownErrorText,
errorRetryText: errorRetryText ?? this.errorRetryText,
nothingIcon: nothingIcon ?? this.nothingIcon,
errorIcon: errorIcon ?? this.errorIcon,
textPadding: textPadding ?? this.textPadding,
iconPadding: iconPadding ?? this.iconPadding,
buttonPadding: buttonPadding ?? this.buttonPadding,
progressPadding: progressPadding ?? this.progressPadding,
wholePaddingUnlessNormal: wholePaddingUnlessNormal ?? this.wholePaddingUnlessNormal,
textStyle: textStyle ?? this.textStyle,
textMaxLines: textMaxLines ?? this.textMaxLines,
textOverflow: textOverflow ?? this.textOverflow,
buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
buttonStyle: buttonStyle ?? this.buttonStyle,
iconSize: iconSize ?? this.iconSize,
iconColor: iconColor ?? this.iconColor,
progressSize: progressSize ?? this.progressSize,
progressStrokeWidth: progressStrokeWidth ?? this.progressStrokeWidth,
showLoadingProgress: showLoadingProgress ?? this.showLoadingProgress,
showLoadingText: showLoadingText ?? this.showLoadingText,
showNothingIcon: showNothingIcon ?? this.showNothingIcon,
showNothingText: showNothingText ?? this.showNothingText,
showNothingRetry: showNothingRetry ?? this.showNothingRetry,
showErrorIcon: showErrorIcon ?? this.showErrorIcon,
showErrorText: showErrorText ?? this.showErrorText,
showErrorRetry: showErrorRetry ?? this.showErrorRetry,
customLoadingProgressBuilder: customLoadingProgressBuilder ?? this.customLoadingProgressBuilder,
customLoadingTextBuilder: customLoadingTextBuilder ?? this.customLoadingTextBuilder,
customNothingIconBuilder: customNothingIconBuilder ?? this.customNothingIconBuilder,
customNothingTextBuilder: customNothingTextBuilder ?? this.customNothingTextBuilder,
customNothingRetryBuilder: customNothingRetryBuilder ?? this.customNothingRetryBuilder,
customErrorIconBuilder: customErrorIconBuilder ?? this.customErrorIconBuilder,
customErrorTextBuilder: customErrorTextBuilder ?? this.customErrorTextBuilder,
customErrorRetryBuilder: customErrorRetryBuilder ?? this.customErrorRetryBuilder,
customNormalStateBuilder: customNormalStateBuilder ?? this.customNormalStateBuilder,
customSwitcherBuilder: customSwitcherBuilder ?? this.customSwitcherBuilder,
);
}