auth static method

void auth({
  1. required AuthType authType,
  2. dynamic authEntry,
  3. required AuthorizeCall authorizeCall,
})

微信、qq、新浪微博授权 authType 授权类型 authEntry 授权数据: 当authType==AuthType.weChat时WeChatAuthEntry 当authType==AuthType.qq时QQAuthEntry 当authType==AuthType.weiBo时WeiBoAuthEntry authorizeCall 授权回调

Implementation

static void auth({required AuthType authType, dynamic authEntry, required AuthorizeCall authorizeCall}) {
  if (authType == AuthType.weChat) {
    var weChatAuth = WeChatAuth();
    weChatAuth.authorize(authEntry: authEntry, authorizeCall: authorizeCall);
  } else if (authType == AuthType.qq) {
    var qqAuth = QQAuth();
    qqAuth.authorize(authEntry: authEntry, authorizeCall: authorizeCall);
  } else if (authType == AuthType.weiBo) {
    var weiBoAuth = WeiBoAuth();
    weiBoAuth.authorize(authEntry: authEntry, authorizeCall: authorizeCall);
  }
}