link method
Routers override this method to throw an exception. Use route instead.
Implementation
@override
Linkable link(Controller Function() generatorFunction) {
throw ArgumentError(
"Invalid link. 'Router' cannot directly link to controllers. Use 'route'.",
);
}