The difference between two compared Schemas.

This class is used for comparing schemas for validation and migration.

Static Methods

createTableSource(SchemaTable table) → String

deleteTableSource(SchemaTable table) → String

Constructors

SchemaDifference(Schema expectedSchema, Schema actualSchema)

Creates a new instance that represents the difference between expectedSchema and actualSchema.

Properties

actualSchema Schema

The 'actual' schema.

final
errorMessages → List<String>

Human-readable messages to describe differences between expectedSchema and actualSchema.

read-only
expectedSchema Schema

The 'expected' schema.

final
hasDifferences → bool

Whether or not expectedSchema and actualSchema have differences.

read-only
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

generateUpgradeSource({List<String> changeList }) → String

Returns Dart code to change expectedSchema to actualSchema.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited