when<T> method
Provides a safe builder access for querying the database when you are unsure of the initialisation status
Implementation
Stream<List<T>> when<T>(Stream<List<T>> Function(SqlliteDatabase db) builder) async* {
await future;
yield* builder(this);
}