toMapSignal method

MapSignal<K, V> toMapSignal()

Converts this map to a reactive map signal.

The resulting MapSignal provides reactive access to map operations and automatically notifies subscribers when the map changes.

Returns: A new MapSignal containing this map as its initial value

Example:

final userMap = {'name': 'Alice', 'age': 30}.toMapSignal();

Effect(() => print('User: ${userMap['name']}'));

userMap['name'] = 'Bob'; // Triggers effect: "User: Bob"

Implementation

MapSignal<K, V> toMapSignal() => MapSignal(this);