doGetVersions abstract method

Future<List<PackageId>> doGetVersions(
  1. PackageRef ref,
  2. Duration? maxAge,
  3. SystemCache cache
)
inherited

Get the IDs of all versions that match ref.

Note that this does not require the packages to be downloaded locally, which is the point. This is used during version resolution to determine which package versions are available to be downloaded (or already downloaded).

By default, this assumes that each description has a single version and uses describe to get that version.

Implementation

Future<List<PackageId>> doGetVersions(
  PackageRef ref,
  Duration? maxAge,
  SystemCache cache,
);