join method
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';
}