setEventCallback method Null safety

Future<int> setEventCallback(
  1. NERtcDeviceEventCallback callback
)

Set the callback for the device event

Implementation

Future<int> setEventCallback(NERtcDeviceEventCallback callback) async {
  _handler.setCallback(callback);
  IntValue reply = await _api.setDeviceEventCallback();
  return reply.value ?? -1;
}