In Memory Database¶
To instantiate an in-memory database, use the static inMemoryDatabaseBuilder() method of the generated $FroomAppDatabase class instead of databaseBuilder().
final database = await $FroomAppDatabase.inMemoryDatabaseBuilder().build();