SchemaDifference class

The difference between two compared Schemas.

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

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
tableDifferences → List<SchemaTableDifference>
The differences, if any, between tables in expectedSchema and actualSchema.
read-only
tablesToAdd → List<SchemaTable>
read-only
tablesToDelete → List<SchemaTable>
read-only
tablesToModify → List<SchemaTableDifference>
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

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited