The difference between two compared SchemaColumns.

This class is used for comparing database columns for validation and migration.

Constants

symbols → List<Symbol>

List of comparable properties of a SchemaColumn.

const [#name, #isIndexed, #type, #isNullable, #autoincrement, #isUnique, #defaultValue, #isPrimaryKey, #relatedTableName, #relatedColumnName, #deleteRule]

Constructors

SchemaColumnDifference(SchemaColumn expectedColumn, SchemaColumn actualColumn)

Creates a new instance that represents the difference between expectedColumn and actualColumn.

Properties

actualColumn SchemaColumn

The actual column.

final
errorMessages → List<String>

Human-readable list of differences between expectedColumn and actualColumn.

read-only
expectedColumn SchemaColumn

The expected column.

final
hasDifferences → bool

Whether or not expectedColumn and actualColumn are different.

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

Dart code to upgrade expectedColumn to actualColumn.

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