StatusLayout constructor
const
StatusLayout({
- Key? key,
- RxStatus? status,
- Widget? loading,
- Widget? error,
- Widget? empty,
- Widget? success,
- double? width,
- double? height,
- VoidCallback? onRetry,
- bool showLoadingOnce = false,
- Color? loadingColor,
- double? loadingSize,
- Color? errorColor,
- String? errorText,
- Color? emptyColor,
- String? emptyText,
- Alignment? alignment,
- BoxConstraints? constraints,
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.loadingColor,
this.loadingSize,
this.errorColor,
this.errorText,
this.emptyColor,
this.emptyText,
this.alignment,
this.constraints,
}) : assert(success != null);