isCurrent method

bool isCurrent(
  1. String routeName
)

Implementation

bool isCurrent(String routeName) {
  bool isCurrent = false;
  popUntil((route) {
    if (route.settings.name == routeName) {
      isCurrent = true;
    }
    return true;
  });
  return isCurrent;
}