waitForSplash method
Waits until the time specified by waitSplashScreenDuration has elapsed.
Implementation
Future<void> waitForSplash() async {
if (splashFinished) {
return;
}
if (_splashScreenCompleter == null ||
_splashScreenCompleter?.isCompleted == true) {
_splashScreenCompleter = Completer<void>();
}
return await _splashScreenCompleter!.future;
}