getLicenseEntries method

List<LicenseEntry> getLicenseEntries(
  1. List<int> bindings,
  2. List<LicenseEntry> licenses
)

Create List of LicenseEntrys to include package specific licensed based on the bindings and the List of LicenseEntrys containing all licenses. List of []

Implementation

List<LicenseEntry> getLicenseEntries(
    List<int> bindings, List<LicenseEntry> licenses) {
  return bindings.map((int i) => licenses[i]).toList(growable: false);
}