Skip to content

In Memory Database

To instantiate an in-memory database, use the static inMemoryDatabaseBuilder() method of the generated $FlatAppDatabase class instead of databaseBuilder().

final database = await $FlatAppDatabase.inMemoryDatabaseBuilder().build();