emitEvent static method

void emitEvent(
  1. dynamic channle,
  2. String method,
  3. String type,
  4. dynamic data,
)

Implementation

static void emitEvent(channle, String method, String type, data) {
  Map<String, dynamic> resMap = {};
  resMap["type"] = type;
  resMap["data"] = data;
  channle.invokeMethod(method, resMap);
}