getGenericType method
GenericType
getGenericType(
- TypeInfo type
Retrieves the appropriate GenericType
for the given type
.
Implementation
GenericType getGenericType(TypeInfo type) {
return types.where((x) => x.name == type.name).firstOrNull ??
defaultUserTypes.firstWhere((x) => x.name == type.name);
}