toDartPrimitive static method
Convert Column
to native Dart
Implementation
static Type toDartPrimitive(Column definition) {
switch (definition) {
case Column.bigint:
return num;
case Column.boolean:
return bool;
case Column.blob:
return List;
case Column.date:
return DateTime;
case Column.datetime:
return DateTime;
case Column.Double:
return double;
case Column.integer:
return int;
case Column.float:
case Column.num:
return num;
case Column.text:
return String;
case Column.varchar:
return String;
default:
return throw ArgumentError('$definition not found in Column');
}
}