Dart Set cast()
Syntax & Examples


Syntax of Set.cast()

The syntax of Set.cast() method is:

 Set<R> cast<R>() 

This cast() method of Set provides a view of this set as a set of R instances.

Return Type

Set.cast() returns value of type Set<R>.