auth method

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

授权登录

Implementation

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