clearWhere method

  1. @override
void clearWhere(
  1. bool predicate(
    1. DartBoardPath path
    )
)
override

Clear all routes in the stack that match the predicate

Implementation

@override
void clearWhere(bool Function(DartBoardPath path) predicate) {
  navStack.removeWhere((path) => predicate(path) && path.path != '/');
  notifyListeners();
}