linkFunction method

  1. @override
Linkable linkFunction(
  1. FutureOr<RequestOrResponse?> handle(
    1. Request request

Links a function controller to the receiver to form a request channel.

If the receiver does not respond to a request, handle receives the request next.

See link for a variant of this method that takes an object instead of a closure.


Linkable linkFunction(FutureOr<RequestOrResponse?> handle(Request request)) {
  return _nextController = _FunctionController(handle);