handlerRegistrationTimeout property
How long an intent waits for its handler to be registered.
A cold start (an Android AppFunction or an iOS background intent waking
the app) can deliver the call while main() is still awaiting setup,
before the handlers are registered.
Implementation
Duration handlerRegistrationTimeout = const Duration(seconds: 5);