sendAuth method

Future<void> sendAuth({
  1. required List<String> scope,
  2. String? state,
})

iOS:未安装微信,授权登录

Implementation

Future<void> sendAuth({
  required List<String> scope,
  String? state,
}) {
  assert(Platform.isIOS);
  return _channel.invokeMethod<void>('sendAuth', <String, dynamic>{
    _ARGUMENT_KEY_SCOPE: scope.join(','), // Scope
    if (state != null) _ARGUMENT_KEY_STATE: state,
  });
}