SchemaColumn class

: a single column in the snapshot. Mirrors the relevant fields of ColumnMeta but in a JSON-friendly form.

Constructors

SchemaColumn({required String name, required String sqliteType, required bool nullable, String? defaultLiteral, bool isPrimaryKey = false, bool isAutoIncrement = false, SchemaForeignKey? foreignKey})
const

Properties

defaultLiteral String?
final
foreignKey SchemaForeignKey?
Foreign-key metadata. null for non-FK columns.
final
hashCode int
The hash code for this object.
no setterinherited
isAutoIncrement bool
final
isPrimaryKey bool
final
name String
final
nullable bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sqliteType String
Canonical SQLite type for the Dart type (INTEGER, TEXT, REAL, …). Captured at snapshot time so a later change to the type mapper is visible in the diff.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, Object?> json) SchemaColumn