allReady method

bool allReady({
  1. void onReady(
    1. BuildContext context
    )?,
  2. void onError(
    1. BuildContext context,
    2. Object? error
    )?,
  3. 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);