watchObject abstract method

Stream<OBJ?> watchObject(
  1. Id id, {
  2. bool fireImmediately = false,
})

Watch the object with id for changes. If a change occurs, the new object will be returned in the stream.

Objects that don't exist (yet) can also be watched. If fireImmediately is true, the object will be sent to the consumer immediately.

Implementation

Stream<OBJ?> watchObject(Id id, {bool fireImmediately = false});