PathMap<V>.of constructor

  1. Map<String, V> other,
  2. {Context? context}

Creates a PathMap with the same keys and values as other whose keys are compared using context.equals and context.hash.

The context defaults to the current path context. If multiple keys in other represent the same logical path, the last key's value will be used.


PathMap.of(Map<String, V> other, {p.Context? context})
    : super(_create(context)..addAll(other));