linkWithWeChat method

Future linkWithWeChat({
  1. required String wxAppId,
  2. String wxUniLink = "",
  3. bool? withUnionId = false,
})

绑定微信

wxAppId 微信AppID

wxUniLink 微信ulink链接配置,iOS必传

Implementation

Future<dynamic> linkWithWeChat({
  required String wxAppId,
  String wxUniLink = "",
  bool? withUnionId = false,
}) async {
  if (_wxAuthProvider == null) {
    _wxAuthProvider = WxAuthProvider(super.core);
  }
  return _wxAuthProvider!
      .linkWithWechat(wxAppId: wxAppId, wxUniLink: wxUniLink);
}