ProgressBuilder constructor
const
ProgressBuilder({
- required ProgressChildWidgetBuilder builder,
- required ProgressIndicatorWidgetBuilder progressBuilder,
- ProgressAction? action,
- ActionController? controller,
- ErrorCallback? onError,
- VoidCallback? onSuccess,
- VoidCallback? onDone,
- VoidCallback? onStart,
- 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);