DriftColumnDeclarationBuilder class final
An annotation on a method on Table (or an extension) used to begin a chain of methods describing a table column.
This is used by e.g. Table.integer and related columns to tell drift_dev
about the used type. Users typically don't have to create custom instances
of DriftColumnDeclarationBuilder.
- Annotations
-
- @Target.new({TargetKind.method})
Constructors
-
DriftColumnDeclarationBuilder.forCustom(SqlType<
Object> custom()) -
Annotation constructor for custom types.
const
Properties
-
builtin
→ BuiltinSqlType<
Object> ? -
For builtin types, the SQL type of the column.
final
-
custom
→ SqlType<
Object> Function()? -
For methods declaring custom (non-builtin) SQL types, a factory of the
type being constructed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited