createAll method Null safety

Future<void> createAll()

Creates all tables, triggers, views, indexes and everything else defined in the database, if they don't exist.

Implementation

Future<void> createAll() async {
  for (final entity in _db.allSchemaEntities) {
    await create(entity);
  }
}