PathMap<V>.of constructor

PathMap<V>.of(Map<String, V> other, { 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.

Implementation

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