extractControllerPath static method

String? extractControllerPath(
  1. Object controller
)

Extracts the controller path from @Controller annotation.

Implementation

static String? extractControllerPath(Object controller) {
  try {
    // Try to use reflection to extract @Controller path
    final reflectionRouter = ReflectionHelper.extractControllerPath(controller);
    return reflectionRouter;
  } catch (e) {
    Log.d('Could not extract controller path via reflection: $e');
    return null;
  }
}