sendEvent static method
Sends a custom event with the given name and event params.
The event with the same name can have up to 20 params.
The name of the event. Some event names are reserved.
The map of event params. String, Integer, Float, Boolean param types are supported.
Implementation
static Future<void> sendEvent(String name,
[Map<String, dynamic>? params]) async {
return await _channel
.invokeMethod(AdropMethod.sendEvent, {"name": name, "params": params});
}