SetToCollectionGenericConverter constructor
SetToCollectionGenericConverter()
A converter that transforms a Set to a specific collection subtype.
Supported conversions:
Set→SetSet→ListSet→QueueSet→IterableSet→ArrayListSet→HashSetSet→LinkedQueueSet→LinkedListSet→LinkedStackSet→StackSet→col.LinkedHashSetSet→col.ListBaseSet→col.SetBaseSet→col.Queue
Example:
final converter = SetToCollectionConverter();
print(converter.convert({1, 2, 3}, Class.forType(Set), Class<List>(null, PackageNames.DART))); // prints: [1, 2, 3]
Implementation
SetToCollectionGenericConverter(ConversionService cs) : super(cs, Class<Set>(null, PackageNames.DART));