add method

void add(
  1. String pattern,
  2. ControllerAction action
)

Implementation

void add(String pattern, ControllerAction action) {
  print('Adding route: $pattern'); // Debug print
  _routes.add(Route(
      RegExp(pattern), action)); // Create a RegExp object from the pattern
}