NiceAsyncContent constructor

const NiceAsyncContent({
  1. Key? key,
  2. required NiceAsyncStatus status,
  3. required Widget child,
  4. Widget? loadingWidget,
  5. Widget? errorWidget,
  6. Widget? emptyWidget,
  7. String? loadingMessage,
  8. String? errorMessage,
  9. VoidCallback? onRetry,
  10. String? emptyTitle,
  11. String? emptyMessage,
})

Implementation

const NiceAsyncContent({
  super.key,
  required this.status,
  required this.child,
  this.loadingWidget,
  this.errorWidget,
  this.emptyWidget,
  this.loadingMessage,
  this.errorMessage,
  this.onRetry,
  this.emptyTitle,
  this.emptyMessage,
});