pop<T extends Object?> method

  1. @override
  2. @optionalTypeArgs
void pop<T extends Object?>([
  1. T? result
])
override

Clients can either pop their own _pages stack or defer the call to a parent controller

see Navigator.pop(context) for more details

Implementation

@override
@optionalTypeArgs
void pop<T extends Object?>([T? result]) {
  if (homeIndex != -1 && _activeIndex != homeIndex) {
    setActiveIndex(homeIndex);
  } else if (_parent != null) {
    _parent!.pop(result);
  }
}