clearEventCallback method Null safety
Clear the callback for the device event
Implementation
Future<int> clearEventCallback() async {
_handler.setCallback(null);
IntValue reply = await _api.clearDeviceEventCallback();
return reply.value ?? -1;
}