ProgressBuilder constructor

const ProgressBuilder({
  1. required ProgressChildWidgetBuilder builder,
  2. required ProgressIndicatorWidgetBuilder progressBuilder,
  3. ProgressAction? action,
  4. ActionController? controller,
  5. ErrorCallback? onError,
  6. VoidCallback? onSuccess,
  7. VoidCallback? onDone,
  8. VoidCallback? onStart,
  9. Key? key,
})

Creates a ProgressBuilder.

The builder builds the child, either in initial, done or error state (error != null).

The progressBuilder builds the state when action is in progress, e.g. LinearLoadingIndicator

Implementation

const ProgressBuilder({
  required this.builder,
  required this.progressBuilder,
  this.action,
  this.controller,
  this.onError,
  this.onSuccess,
  this.onDone,
  this.onStart,
  Key? key,
}) : super(key: key);