Valuable<Output>.computed constructor

Valuable<Output>.computed(
  1. ValuableParentWatcher<Output> computation, {
  2. bool evaluateWithContext = false,
})

Factory Valuable.computed to build a Valuable that calculate its own value through a function.

Implementation

factory Valuable.computed(ValuableParentWatcher<Output> computation,
    {bool evaluateWithContext = false}) {
  return _Valuable<Output>.computed(computation,
      evaluateWithContext: evaluateWithContext);
}