set method

  1. @override
void set(
  1. T newValue
)
override

Computed nodes are read-only. Calling set throws a StateError.

Implementation

@override
void set(T newValue) {
  throw StateError(
    'Cannot set a ComputedNode directly. '
    'Its value is derived from the compute function.',
  );
}