removeObserver method

void removeObserver(
  1. String name,
  2. RouteLifecycleStateChanged routeLifecycleStateChanged
)

Implementation

void removeObserver(
    String name, RouteLifecycleStateChanged routeLifecycleStateChanged) {
  if (!routeLifecycleDidChanges
      .containsKey(getKey(name, routeLifecycleStateChanged))) return;
  routeLifecycleDidChanges.remove(getKey(name, routeLifecycleStateChanged));
}