WithViewState constructor
const
WithViewState({
- Key? key,
- required ViewState viewState,
- required Widget child,
- bool isRefreshable = false,
- VoidCallback retryAction = _noop,
- ErrorDisplayMode errorDisplayMode = ErrorDisplayMode.replace,
- ViewStateErrorBuilder? errorBuilder,
- ErrorMessageResolver? errorMessageResolver,
- ViewStateTexts texts = const ViewStateTexts(),
- bool autofocusRetry = false,
Implementation
const WithViewState({
super.key,
required this.viewState,
required this.child,
this.isRefreshable = false,
this.retryAction = _noop,
this.errorDisplayMode = ErrorDisplayMode.replace,
this.errorBuilder,
this.errorMessageResolver,
this.texts = const ViewStateTexts(),
this.autofocusRetry = false,
});