columnDefinition property
String
get
columnDefinition
Get this field column definition for creation table.
For example:
firstName TEXT NOT NULL
serverId INT UNIQUE
Implementation
String get columnDefinition {
String result = '$columnName ${DbHelper._getFieldTypeAffinity(valueType)}';
if (notNull == true) result += ' NOT NULL';
if (isUnique == true) result += ' UNIQUE';
return result;
}