SchemaColumnDifference class Null safety

The difference between two compared SchemaColumns.

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

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-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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