registerService method

void registerService(
  1. ServiceDesc desc
)

Adds a service's methods (generated code calls it).

Implementation

void registerService(ServiceDesc desc) {
  for (final method in desc.methods) {
    _methods[method.path] = method;
  }
}