getGenericType property
String?
get
getGenericType
提取类型字符串的泛型类型: List<E> -> E
Implementation
String? get getGenericType {
int start = indexOf('<') + 1;
int end = lastIndexOf('>');
if (start >= end) return null;
return substring(indexOf('<') + 1, lastIndexOf('>'));
}