registerMethod function

void registerMethod(
  1. String name,
  2. MethodHandler handler
)

Implementation

void registerMethod(String name, MethodHandler handler) {
  _methods[name] = handler;
}