DatabaseColumnId class

Declaring column who contain int primary key, must be unique value in column, must to be const

if paste 0, they insert new row

Inheritance
Annotations
  • @immutable

Constructors

DatabaseColumnId(String name)
const

Properties

columnDefinition String
Column definition for sqlite3
no setterinherited
constraints String
Constraints of that column
finalinherited
hashCode int
The hash code for this object.
no setterinherited
indexed bool
Needs to create index for this column
finalinherited
name String
Column name
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Declared type of column
finalinherited
unique bool
Unique values in column
finalinherited

Methods

binRead(BinaryReader reader) int
Read raw database value from reader
inherited
binWrite(int value, BinaryWriter writer) → void
Wrtie raw database value to writer
inherited
dartDecode(int value) int
Converting T dart object to raw database value
override
dartEncode(int value) int
Converting raw database value to T dart object
override
databaseLoadMutator(int? value) int
Mutate db value after select to raw value
override
databaseSaveMutator(int value) int?
Mutate raw value to db before insert it to database
override
jsonDecode(Object? value) int
Converting json to raw database value
inherited
jsonEncode(int value) Object?
Converting raw database value to json
inherited
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