allReady method

Future<void> allReady({
  1. Duration? timeout,
  2. bool ignorePendingAsyncCreation = false,
})

returns a Future that completes if all asynchronously created Singletons and any Singleton that had signalsReady==true are ready. This can be used inside a FutureBuilder to change the UI as soon as all initialization is done If you pass a timeout, an WaitingTimeOutException will be thrown if not all Singletons were ready in the given time. The Exception contains details on which Singletons are not ready yet. if allReady should not wait for the completion of async Signletons set ignorePendingAsyncCreation==true

Implementation

Future<void> allReady(
        {Duration? timeout, bool ignorePendingAsyncCreation = false}) =>
    locator.allReady(
      timeout: timeout,
      ignorePendingAsyncCreation: ignorePendingAsyncCreation,
    );