isDirectoryPath property
bool
get
isDirectoryPath
determines if this reference references a package directory
Implementation
bool get isDirectoryPath {
try {
return Directory(ref).existsSync();
} catch (_) {
return false;
}
}