forType<Dart extends Object> static method
Attempts to find a suitable SQL type for the Dart
type passed to this
method.
The Dart
type must be the type of the instance after applying type
converters.
Implementation
static DriftSqlType<Dart> forType<Dart extends Object>() {
final type = _dartToDrift[Dart];
if (type == null) {
throw ArgumentError('Could not find a matching SQL type for $Dart');
}
return type as DriftSqlType<Dart>;
}