SchemaBuilder.toSchema constructor Null safety

SchemaBuilder.toSchema(
  1. PersistentStore? store,
  2. Schema targetSchema,
  3. {bool isTemporary = false,
  4. List<String>? changeList}
)

Creates a builder starting from the empty schema.

If store is null, this builder will emit commands that are Dart statements that replicate the methods invoked on this object. Otherwise, commands are SQL commands (for the database represented by store) that are equivalent to the method invoked on this object.

Implementation

SchemaBuilder.toSchema(
  PersistentStore? store,
  Schema targetSchema, {
  bool isTemporary = false,
  List<String>? changeList,
}) : this.fromDifference(
        store,
        SchemaDifference(Schema.empty(), targetSchema),
        isTemporary: isTemporary,
        changeList: changeList,
      );