getClosest method
Returns the TypeConverter in the closest TypeConverterScope for
dartType
Implementation
TypeConverter getClosest(DartType dartType) {
final closest = getClosestOrNull(dartType);
if (closest == null) {
throw InvalidGenerationSourceError(
'Column type is not supported for $dartType',
todo: 'Either use a supported type or supply a type converter.',
);
}
return closest;
}