enableOfflinePush method Null safety

Future<void> enableOfflinePush()

Turns on the push notification.

Throws A description of the issue that caused this exception. See {@link EMError}

Implementation

Future<void> enableOfflinePush() async {
  Map result = await _channel.invokeMethod(ChatMethodKeys.enableOfflinePush);
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}