license_gatherer library
Classes
- LocatedDependency
- Represents a dependency with path (to later retrieve license)
- NoticesFormat
- Format for notices generation by generateNotices.
Constants
- defaultNoticesFormat → const NoticesFormat
Functions
-
gatherLicenses(
List< LocatedDependency> packages) → Future<Map< String, GatheredLicense> > - Gather all licenses of provided packages
-
generateNotices(
Map< String, GatheredLicense> licenses, [NoticesFormat format = defaultNoticesFormat]) → String - Compile all licenses together into one notices string.
-
locateDependencies(
String pubSpecFilePath, [bool checkFlutterVersion = true]) → List< LocatedDependency> - Locate all dependencies of a 'pubspec.yaml' (Name, Version, Path)
-
printError(
Object? obj) → void - Print in red colour
-
printInfo(
Object? obj) → void - Print in blue colour
-
printWarning(
Object? obj) → void - Print in yellow colour