back method

bool back()

Implementation

bool back() {
  if (this.canBack()) {
    List<String> backSegments = [...this._router.urlSegments];
    backSegments.removeLast();

    PlusRoute? _result = this._router.tryParse(backSegments);
    if (_result != null) {
      this.navigateByUrl(_result.location);
      return false;
    } else {
      notifyListeners();
      return true;
    }
  }

  return false;
}