update method

  1. @protected
void update(
  1. Locator watch
)

A life-cycle that allows listening to updates on another object.

This is equivalent to what "ProxyProviders" do using provider, but implemented with no dependency on Flutter.

The property read is not accessible while inside the body of update. Use the parameter passed to update instead, which will not just read the object but also watch for changes.

Implementation

@protected
void update(Locator watch) {}