isPathActive method

bool isPathActive(
  1. String pattern
)

Implementation

bool isPathActive(String pattern) {
  return RegExp(pattern).hasMatch(urlState.path);
}