onCall method

  1. @override
FutureOr<Message> onCall(
  1. Request request
)
override

Implementation

@override
FutureOr<Message> onCall(Request request) {
  if (childrenBinding[PathSegment(request.nextPathSegment)] != null) {
    return childrenBinding[PathSegment(request.nextPathSegment)]!
        .findCalling
        .calling(request);
  } else {
    throw NotFoundException(request.nextPathSegment);
  }
}