handleRoute method

void handleRoute(
  1. String pattern,
  2. ComponentRouterHandleFunc matcherFunc, {
  3. bool? prefixMatch,
})

Implementation

void handleRoute(String pattern, ComponentRouterHandleFunc matcherFunc, {bool? prefixMatch}) {
  _matchMap[pattern] = _ComponentRoute(matcherFunc, prefixMatch: prefixMatch);
}