createLicenseText function
Creates the OSS license text of all packages used by this library. Uses the flutter_oss_licenses package to generate the license information for the used packages.
Implementation
String createLicenseText() {
var rv = _selfLicense();
final ext = ossLicenses;
if (ext.isEmpty) {
return rv;
}
rv +=
'\n\n-------------------------------------------------------------------------------\nAdditional licenses:\n\n';
for (final value in ext) {
final name = value.name;
final version = value.version;
final url = value.homepage;
final license = value.license;
rv += 'package "$name" version: $version\n$url\n\n$license\n\n';
}
return rv;
}