unwatchEffect method

void unwatchEffect(
  1. BuildContext context, {
  2. required Object key,
})

Remove the effect with the given key from the list of effects to be called when this Observable notifies of a change.

Implementation

void unwatchEffect(
  BuildContext context, {
  required Object key,
}) {
  InheritedContextWatch.of(context).unwatchEffect(context, this, key);
}