parseId abstract method
Parses a PackageId from a name and a serialized description.
This only accepts descriptions serialized using serializeDescription
. It
should not be used with user-authored descriptions.
containingDir
is the path to the directory lockfile where this
description appears. It may be null
if the description is coming from
some in-memory source.
Throws a FormatException if the description is not valid.
Implementation
PackageId parseId(
String name,
Version version,
Object? description, {
String? containingDir,
});