navigateFromNotification method

void navigateFromNotification(
  1. String path
)

Navigates to path from a notification tap with correct back-stack semantics: overlay routes are pushed; shell tab routes replace state.

Implementation

void navigateFromNotification(String path) {
  if (_overlayPrefixes.any(path.startsWith)) {
    push(path);
  } else {
    go(path);
  }
}