PathSet.of constructor

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

Creates a PathSet with the same contents as other whose elements are compared using context.equals and context.hash.

The context defaults to the current path context. If multiple elements in other represent the same logical path, the first value will be used.


PathSet.of(Iterable<String> other, {p.Context? context})
    : _inner = _create(context)..addAll(other);