SchemaDifference class Null safety

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
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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

Methods

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

Operators

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