toMapKeyType<V> method
Returns this
as a TypeInfo for Map<K,T>
.
Implementation
TypeInfo<Map<T, V>> toMapKeyType<V>({TypeInfo? valueType}) {
valueType ??= TypeInfo.fromType(V);
return TypeInfo.fromType(Map, [this, valueType]);
}