waitForFullInit method
Implementation
Future<void> waitForFullInit({final maxWait = const Duration(seconds: 5)}) async {
final start = DateTime.now();
while (true) {
if (isFullyInitialized) break;
if (DateTime.now().difference(start) >= maxWait || _isInitDone) {
Fimber.e('Failed to wait RemoteConfig full load', stacktrace: StackTrace.current);
break;
}
await Future.delayed(const Duration(milliseconds: 100));
}
}