value property

  1. @override
Dependency get value
override

The value this Node represents.

Implementation

@override
Dependency get value {
  ValueKind? kind;
  if (self is Consumer) {
    kind ??= ValueKind.proxyNode;
  }
  if (self is InjectableProxy) {
    kind ??= ValueKind.proxyLeaf;
  }
  if (self is DetachedConsumer) {
    kind ??= ValueKind.node;
  }
  return Dependency(
    type,
    self,
    valueKind: kind ?? ValueKind.leaf,
  );
}