toDartSet method
Deep converts this JSet to a Dart Set.
This creates a new Set, converts all the JSet elements, and adds them to the Set. If you only need iteration and element access, asDart is much more efficient.
Implementation
Set<Object?> toDartSet({
Object Function(JObject) convertOther = _defaultDartConverter,
}) =>
asDart()
.map(
(o) => toNullableDartObject(
o,
convertOther: convertOther,
),
)
.toSet();