StatusLayout constructor

const StatusLayout({
  1. Key? key,
  2. RxStatus? status,
  3. Widget? loading,
  4. Widget? error,
  5. Widget? empty,
  6. Widget? success,
  7. double? width,
  8. double? height,
  9. VoidCallback? onRetry,
  10. bool showLoadingOnce = false,
  11. Color? errorColor,
  12. String? errorText,
  13. Color? emptyColor,
  14. String? emptyText,
  15. Alignment? alignment,
})

Implementation

const StatusLayout({
  super.key,
  this.status,
  this.loading,
  this.error,
  this.empty,
  this.success,
  this.width,
  this.height,
  this.onRetry,
  this.showLoadingOnce = false,
  this.errorColor,
  this.errorText,
  this.emptyColor,
  this.emptyText,
  this.alignment,
}) : assert(success != null);