PotDescription.fromPot constructor

PotDescription.fromPot(
  1. Pot<Object?> pot
)

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,
  );
}