SnapHelperWidget<T> constructor

SnapHelperWidget<T>({
  1. required Future<T>? future,
  2. required Widget onSuccess(
    1. T data
    ),
  3. Widget? loadingWidget,
  4. Widget? errorWidget,
  5. dynamic initialData,
  6. String? defaultErrorMessage,
  7. Widget errorBuilder(
    1. String
    )?,
  8. bool useConnectionStateForLoader = false,
  9. Key? key,
})

Implementation

SnapHelperWidget({
  required this.future,
  required this.onSuccess,
  this.loadingWidget,
  this.errorWidget,
  this.initialData,
  this.defaultErrorMessage,
  this.errorBuilder,
  this.useConnectionStateForLoader = false,
  super.key,
});