allReadyHandler method

void allReadyHandler(
  1. void onReady(
    1. BuildContext context
    )?, {
  2. void onError(
    1. BuildContext context,
    2. Object? error
    )?,
  3. Duration? timeout,
})

registers a handler that is called when the all-ready state is reached it does not trigger a rebuild like allReady does you can force a timeout Exceptions if allReady completed within timeout which will call onError

Implementation

void allReadyHandler(void Function(BuildContext context)? onReady,
        {void Function(BuildContext context, Object? error)? onError,
        Duration? timeout}) =>
    widget._state.value.allReady(
        onReady: onReady,
        onError: onError,
        timeout: timeout,
        shouldRebuild: false);