getPathWithName static method
Implementation
static String? getPathWithName(
String? firstPath,
String secondPath, {
bool createWithWrappedFolder = false,
required String? folderName,
}) {
late String betweenPaths;
if (Platform.isWindows) {
betweenPaths = '\\\\';
} else if (Platform.isMacOS || Platform.isLinux) {
betweenPaths = '/';
}
if (betweenPaths.isNotEmpty) {
if (createWithWrappedFolder) {
return firstPath! +
betweenPaths +
folderName! +
betweenPaths +
secondPath;
} else {
return firstPath! + betweenPaths + secondPath;
}
}
return null;
}