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.
no setter
expectedSchema Schema
The 'expected' schema.
final
hasDifferences bool
Whether or not expectedSchema and actualSchema have differences.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableDifferences List<SchemaTableDifference>
The differences, if any, between tables in expectedSchema and actualSchema.
no setter
tablesToAdd List<SchemaTable?>
no setter
tablesToDelete List<SchemaTable?>
no setter
tablesToModify List<SchemaTableDifference>
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited