copyright property
Returns the copyright notice extracted from the license file.
Implementation
Future<String> get copyright async {
if (licenseFile == null) {
return unknownCopyright;
}
String content = await licenseFile!.readAsString();
RegExpMatch? match = coprightRegex.firstMatch(content);
String? copyrightText = (match?.namedGroup('date') ?? '') +
(match?.namedGroup('holders') ?? unknownCopyright);
return copyrightText;
}