link method

  1. @override
Linkable? link(
  1. Controller generatorFunction()
)
override

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'.",
  );
}