detectGenericType method

  1. @override
Type? detectGenericType(
  1. TypeInfo typeInfo
)

Implementation

@override
Type? detectGenericType(TypeInfo typeInfo) {
  if (isBuiltList(typeInfo)) {
    return BuiltList;
  }
  if (isBuiltSet(typeInfo)) {
    return BuiltSet;
  }
  if (isBuiltMap(typeInfo)) {
    return BuiltMap;
  }
  return super.detectGenericType(typeInfo);
}