remove method

  1. @override
void remove()
override

Implementation

@override
void remove() {
  if (route.isCurrent) {
    route.navigator?.pop();
  } else {
    route.navigator?.removeRoute(route);
  }
}