when<T> method

Stream<List<T>> when<T>(
  1. Stream<List<T>> builder(
    1. SqlliteDatabase db
    )
)

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);
}