PrismStateView<T> constructor

const PrismStateView<T>({
  1. Key? key,
  2. required PrismViewState<T> state,
  3. required Widget successBuilder(
    1. T data
    ),
  4. PrismStateViewStyle? style,
  5. String? loadingMessage,
  6. String? errorMessage,
  7. String? emptyMessage,
  8. String? emptyActionLabel,
  9. VoidCallback? onEmptyAction,
  10. VoidCallback? onRetry,
  11. IconData? loadingIcon,
  12. IconData? errorIcon,
  13. IconData? emptyIcon,
})

Creates a state-driven view.

Implementation

const PrismStateView({
  super.key,
  required this.state,
  required this.successBuilder,
  this.style,
  this.loadingMessage,
  this.errorMessage,
  this.emptyMessage,
  this.emptyActionLabel,
  this.onEmptyAction,
  this.onRetry,
  this.loadingIcon,
  this.errorIcon,
  this.emptyIcon,
});