readyBeforeMaterialApp function
At this stage, the context is directly received from MyApp, so it does not contain information on navigation and various other aspects. Please keep this in mind when using it.
Implementation
Future<void> readyBeforeMaterialApp(BuildContext context) async {
if (_done) return; _done = true;
}