router property

Router get router

Returns the router for this controller, built automatically from annotations.

Implementation

Router get router {
  // For backward compatibility, return cached router or empty router
  // The actual router building now happens in buildRouter() method
  return _cachedRouter ?? Router();
}