waitUntilReady static method
Implementation
static Future<void> waitUntilReady() async {
if (isDatabaseReady && _db != null) {
return;
}
final initFuture = _initFuture;
if (initFuture == null) {
throw StateError(
'RxNetDataBase has not been initialized. Call RxNet.init() first.',
);
}
await initFuture;
if (!isDatabaseReady || _db == null) {
throw StateError('RxNetDataBase is not ready.');
}
}