copyWith method

PlaceholderSetting copyWith({
  1. bool? useAnimatedSwitcher,
  2. Duration? switchDuration,
  3. Duration? switchReverseDuration,
  4. Curve? switchInCurve,
  5. Curve? switchOutCurve,
  6. AnimatedSwitcherTransitionBuilder? switchTransitionBuilder,
  7. AnimatedSwitcherLayoutBuilder? switchLayoutBuilder,
  8. String? loadingText,
  9. String? nothingText,
  10. String? nothingRetryText,
  11. String? unknownErrorText,
  12. String? errorRetryText,
  13. IconData? nothingIcon,
  14. IconData? errorIcon,
  15. EdgeInsets? textPadding,
  16. EdgeInsets? iconPadding,
  17. EdgeInsets? buttonPadding,
  18. EdgeInsets? progressPadding,
  19. EdgeInsets? wholePaddingUnlessNormal,
  20. TextStyle? textStyle,
  21. int? textMaxLines,
  22. TextOverflow? textOverflow,
  23. TextStyle? buttonTextStyle,
  24. ButtonStyle? buttonStyle,
  25. double? iconSize,
  26. Color? iconColor,
  27. double? progressSize,
  28. double? progressStrokeWidth,
  29. bool? showLoadingProgress,
  30. bool? showLoadingText,
  31. bool? showNothingIcon,
  32. bool? showNothingText,
  33. bool? showNothingRetry,
  34. bool? showErrorIcon,
  35. bool? showErrorText,
  36. bool? showErrorRetry,
  37. PlaceholderWidgetBuilder? customLoadingProgressBuilder,
  38. PlaceholderWidgetBuilder? customLoadingTextBuilder,
  39. PlaceholderWidgetBuilder? customNothingIconBuilder,
  40. PlaceholderWidgetBuilder? customNothingTextBuilder,
  41. PlaceholderVoidCallbackWidgetBuilder? customNothingRetryBuilder,
  42. PlaceholderWidgetBuilder? customErrorIconBuilder,
  43. PlaceholderWidgetBuilder? customErrorTextBuilder,
  44. PlaceholderVoidCallbackWidgetBuilder? customErrorRetryBuilder,
  45. PlaceholderWidgetBuilderWidgetBuilder? customNormalStateBuilder,
  46. 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,
  );
}