PlaceholderSetting constructor

const PlaceholderSetting({
  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,
})

Implementation

const PlaceholderSetting({
  // animation
  this.useAnimatedSwitcher,
  this.switchDuration,
  this.switchReverseDuration,
  this.switchInCurve,
  this.switchOutCurve,
  this.switchTransitionBuilder,
  this.switchLayoutBuilder,
  // text
  this.loadingText,
  this.nothingText,
  this.nothingRetryText,
  this.unknownErrorText,
  this.errorRetryText,
  // icon
  this.nothingIcon,
  this.errorIcon,
  // padding
  this.textPadding,
  this.iconPadding,
  this.buttonPadding,
  this.progressPadding,
  this.wholePaddingUnlessNormal,
  // style
  this.textStyle,
  this.textMaxLines,
  this.textOverflow,
  this.buttonTextStyle,
  this.buttonStyle,
  this.iconSize,
  this.iconColor,
  this.progressSize,
  this.progressStrokeWidth,
  // show xxx
  this.showLoadingProgress,
  this.showLoadingText,
  this.showNothingIcon,
  this.showNothingText,
  this.showNothingRetry,
  this.showErrorIcon,
  this.showErrorText,
  this.showErrorRetry,
  // custom builder
  this.customLoadingProgressBuilder,
  this.customLoadingTextBuilder,
  this.customNothingIconBuilder,
  this.customNothingTextBuilder,
  this.customNothingRetryBuilder,
  this.customErrorIconBuilder,
  this.customErrorTextBuilder,
  this.customErrorRetryBuilder,
  this.customNormalStateBuilder,
  this.customSwitcherBuilder,
});