SetSignalImpl<E> constructor

SetSignalImpl<E>(
  1. Set<E>? value, {
  2. JoltDebugFn? onDebug,
})

Creates a reactive set signal with the given initial set.

Parameters:

  • value: Initial set content, defaults to empty set if null
  • onDebug: Optional debug callback for reactive system debugging

Example:

final emptySet = SetSignal<String>(null); // Creates empty set
final tags = SetSignal({'dart', 'flutter'});
final autoSet = SetSignal({'tag1', 'tag2'});

Implementation

SetSignalImpl(Set<E>? value, {super.onDebug}) : super(value ?? {});