Path.fromStrings constructor

Path.fromStrings(
  1. List<String> segments
)

A path of the wire segment strings segments; empty strings are skipped.

Implementation

factory Path.fromStrings(List<String> segments) => Path.fromKeys(<ChildKey>[
  for (final String piece in segments)
    if (piece.isNotEmpty) ChildKey(piece),
]);