licenseFile property
File?
get
licenseFile
Returns the license file associated with the package. Will check for various different file names.
Implementation
File? get licenseFile {
for (String fileName in _licenseFileNames) {
File file = File(join(fromUri(package.root), fileName));
if (file.existsSync()) {
return file;
}
}
return null;
}