parseId abstract method
Parses a PackageId from a name and a serialized description.
This should accept descriptions serialized using
ResolvedDescription.serializeForLockfile.
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,
});