unwrap method
Returns the non-reactive set value.
This method provides direct access to the underlying set. It's useful when you need to pass the set to APIs that don't work with Reactive.
Note: Changes to the returned set won't automatically trigger notifications.
You need to trigger a notification manually by reassigning the set to the
reactive value, for example: reactive.value = Set.from(reactive.value).
Example:
final roles = {'user', 'editor'}.reactive;
// Get the raw set
final rawSet = roles.unwrap();
print(rawSet); // {user, editor}
// Use with APIs that require a regular set
final intersection = rawSet.intersection(otherSet);
Implementation
Set<E> unwrap() {
return value;
}