AsyncBuilder<T> constructor
const
AsyncBuilder<T> ({
- Key? key,
- Future<
T> ? future()?, - T? initialValue,
- Widget? loading,
- Widget onLoading(
- BuildContext context
- Widget onError(
- BuildContext context,
- Object error,
- StackTrace? stack
- Widget onDone(
- BuildContext context,
- T value
- bool retryOnError = true,
Implementation
const AsyncBuilder({
super.key,
this.future,
this.initialValue,
this.loading,
this.onLoading,
this.onError,
this.onDone,
this.retryOnError = true,
});