clearEventCallback method Null safety

Future<int> clearEventCallback()

Clear the callback for the device event

Implementation

Future<int> clearEventCallback() async {
  _handler.setCallback(null);
  IntValue reply = await _api.clearDeviceEventCallback();
  return reply.value ?? -1;
}