WithViewState constructor

const WithViewState({
  1. Key? key,
  2. required ViewState viewState,
  3. required Widget child,
  4. bool isRefreshable = false,
  5. VoidCallback retryAction = _noop,
  6. ErrorDisplayMode errorDisplayMode = ErrorDisplayMode.replace,
  7. ViewStateErrorBuilder? errorBuilder,
  8. ErrorMessageResolver? errorMessageResolver,
  9. ViewStateTexts texts = const ViewStateTexts(),
  10. 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,
});