toSetSignal method

SetSignal<E> toSetSignal()

Converts this set to a reactive set signal.

The resulting SetSignal provides reactive access to set operations and automatically notifies subscribers when the set changes.

Returns: A new SetSignal containing this set as its initial value

Example:

final tags = {'dart', 'flutter'}.toSetSignal();

Effect(() => print('Tags: ${tags.join(', ')}'));

tags.add('reactive'); // Triggers effect: "Tags: dart, flutter, reactive"

Implementation

SetSignal<E> toSetSignal() => SetSignal(this);