allReady method
bool
allReady({
- void onReady(
- BuildContext context
- void onError(
- BuildContext context,
- Object? error
- Duration? timeout,
returns true
if all registered async or dependent objects are ready
and call onReady
onError
handlers when the all-ready state is reached
you can force a timeout Exceptions if allReady hasn't
return true
within timeout
It will trigger a rebuild if this state changes
Implementation
bool allReady(
{void Function(BuildContext context)? onReady,
void Function(BuildContext context, Object? error)? onError,
Duration? timeout}) =>
widget._state.value
.allReady(onReady: onReady, onError: onError, timeout: timeout);