join method
Join the given path elements to this path, and return a new FilePath object.
Implementation
FilePath join(
[arg0,
String? arg1,
String? arg2,
String? arg3,
String? arg4,
String? arg5,
String? arg6,
String? arg7,
String? arg8,
String? arg9]) {
var paths = [path];
if (arg0 is List<String>) {
paths.addAll(arg0);
} else if (arg0 is String) {
_addNonNull(paths, arg0);
_addNonNull(paths, arg1);
_addNonNull(paths, arg2);
_addNonNull(paths, arg3);
_addNonNull(paths, arg4);
_addNonNull(paths, arg5);
_addNonNull(paths, arg6);
_addNonNull(paths, arg7);
_addNonNull(paths, arg8);
_addNonNull(paths, arg9);
}
if (paths.length == 1) {
return this;
} else {
return FilePath(paths.join(_sep));
}
}