static String createPath(String path, [Iterable? segments]) { if (segments == null || segments.isEmpty) { return path; } final list = segments.map((e) => '/$e'); return path + list.join(); }