cast<T> method

*<Null safety>*
  • @override

Set<T> cast <T>()

Implementation

@override
Set<T> cast<T>() {
  if (this is Set<T>) {
    return this as Set<T>;
  }
  return Set.castFrom<V, T>(this);
}