changeAppKey method Null safety
- {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);
}