messageRouter method

void messageRouter(
  1. int? id,
  2. String module,
  3. String method,
  4. Map<String, dynamic>? params,
)

Implementation

void messageRouter(int? id, String module, String method, Map<String, dynamic>? params) {
  if (moduleRegistrar.containsKey(module)) {
    moduleRegistrar[module]!.invoke(id, method, params);
  }
}