changeAppKey method Null safety

Future<bool?> changeAppKey(
  1. {required String newAppKey}
)

修改appKey newAppKey.

Implementation

Future<bool?> changeAppKey({required String newAppKey}) async {
  EMLog.v('changeAppKey: $newAppKey');
  Map req = {'appKey': newAppKey};
  Map result = await _channel.invokeMethod(EMSDKMethod.changeAppKey, req);
  EMError.hasErrorFromResult(result);
  return result.boolValue(EMSDKMethod.changeAppKey);
}