PrismStateView<T> constructor
const
PrismStateView<T> ({
- Key? key,
- required PrismViewState<
T> state, - required Widget successBuilder(
- T data
- PrismStateViewStyle? style,
- String? loadingMessage,
- String? errorMessage,
- String? emptyMessage,
- String? emptyActionLabel,
- VoidCallback? onEmptyAction,
- VoidCallback? onRetry,
- IconData? loadingIcon,
- IconData? errorIcon,
- 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,
});