useMap<K, V> function

MapController<K, V> useMap<K, V>([
  1. Map<K, V> initialValue = const <Never, Never>{}
])

Creates stable map state initialized with a snapshot of initialValue.

Implementation

MapController<K, V> useMap<K, V>([Map<K, V> initialValue = const <Never, Never>{}]) {
  return use(_MapHook<K, V>(initialValue));
}