PotDescription.fromPot constructor
Creates a PotDescription from a Pot.
Implementation
factory PotDescription.fromPot(Pot<Object?> pot) {
return PotDescription(
identity: pot.identity(),
isPending: pot is ReplaceablePot ? pot.isPending : null,
isDisposed: pot._isDisposed,
hasObject: pot._hasObject,
object: '${pot._object}',
scope: pot._scope,
);
}