SchemaColumn class Null safety

Describes a column object managed by SQLite This should not exist outside of a SchemaTable

Constructors

SchemaColumn(String name, Column columnType, {bool? autoincrement, dynamic defaultValue, bool isPrimaryKey = false, bool isForeignKey = false, String? foreignTableName, bool? nullable, bool onDeleteCascade = false, bool onDeleteSetDefault = false, bool? unique})

Properties

autoincrement bool
final
columnType Column
final
defaultValue → dynamic
final
foreignTableName String?
final
forGenerator String
Generated Dart code to include in a schema.
read-only
hashCode int
The hash code for this object. [...]
read-only, override
isForeignKey bool
final
isPrimaryKey bool
final
name String
read / write
nullable bool
final
onDeleteCascade bool
final
onDeleteSetDefault bool
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tableName String?
read / write
unique bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toCommand({bool shouldDrop = false}) MigrationCommand
Generated Dart code to include in a migrations file.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override