typeArguments property
List<DartType> ?
get
typeArguments
Returns type arguments of targetType. For example, given Map<Key, Value>
,
[Key, Value]
is returned. If the targetType does not declare type arguments,
return is null
.
Implementation
List<DartType>? get typeArguments {
final type = targetType as InterfaceType;
if (type.typeArguments.isNotEmpty && type.typeArguments.length > 1) {
return type.typeArguments;
}
return null;
}