toMapKeyType<V> method

TypeInfo<Map<T, V>> toMapKeyType<V>({
  1. TypeInfo? valueType,
})

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]);
}