EmptyView constructor

const EmptyView({
  1. Key? key,
  2. required Widget widget,
  3. bool? loading = false,
  4. bool? empty = false,
  5. bool? error = false,
  6. Widget? emptyImage,
  7. Widget? errorImage,
  8. Widget? loadingWidget,
  9. Widget? emptyTitle,
  10. ButtonStyle? buttonStyle,
  11. ButtonStyle? emptyButtonStyle,
  12. Widget? emptyButtonChild,
  13. VoidCallback? emptyPressed,
  14. Widget? emptyContent,
  15. Widget? errorTitle,
  16. Widget? errorContent,
  17. ButtonStyle? errorButtonStyle,
  18. Widget? errorButtonChild,
  19. VoidCallback? errorPressed,
  20. Widget? loadingTitle,
  21. Color? color,
  22. double? imageSize = 200.0,
  23. double? loadingSize,
})

Implementation

const EmptyView({
  Key? key,
  required this.widget,
  this.loading = false,
  this.empty = false,
  this.error = false,
  this.emptyImage,
  this.errorImage,
  this.loadingWidget,
  this.emptyTitle,
  this.buttonStyle,
  this.emptyButtonStyle,
  this.emptyButtonChild,
  this.emptyPressed,
  this.emptyContent,
  this.errorTitle,
  this.errorContent,
  this.errorButtonStyle,
  this.errorButtonChild,
  this.errorPressed,
  this.loadingTitle,
  this.color,
  this.imageSize = 200.0,
  this.loadingSize,
}) : super(key: key);