ColumnDefinition class

Represents a column definition in a table.

Constructors

ColumnDefinition({required String name, required String type, String? constraint, bool autoincrement = false, bool nullable = true, dynamic defaultValue})
Creates a new ColumnDefinition.

Properties

autoincrement → bool
Whether the column should autoincrement.
final
constraint → String?
The constraint for the column.
final
dartType → String
The Dart type equivalent of the SQL type.
no setter
defaultValue → dynamic
The default value for the column.
final
hashCode → int
The hash code for this object.
no setterinherited
isForeignKey → bool
Whether this column is a foreign key.
no setter
isPrimaryKey → bool
Whether this column is a primary key.
no setter
isTypeBool → bool
Whether this column is of boolean type.
no setter
name → String
The name of the column.
final
nullable → bool
Whether the column can be null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqlType → String
The SQL type (with BOOL converted to INTEGER).
no setter
type → String
The SQL type of the column.
final

Methods

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

Operators

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