createPath method

String createPath([
  1. Iterable? segments
])

Return this String as a path with optional segments inserted.

Implementation

String createPath([Iterable<dynamic>? segments]) {
  final path = startsWith('/') ? this : '/$this';
  return GetUtils.createPath(path, segments);
}