join method

String join(
  1. String? path1,
  2. String? path2
)

Implementation

String join(String? path1, String? path2) {
  final $path1 = path1 ?? '';
  final $path2 = path2 ?? '';

  if ($path1.isEmpty) {
    return $path2;
  }

  if ($path2.isEmpty) {
    return $path1;
  }

  return '$path1/$path2';
}