createOption function

Options createOption({
  1. EncryptType encryptType = EncryptType.weApi,
  2. UserAgent userAgent = UserAgent.random,
  3. Map<String, String> cookies = const {},
  4. String? realIP,
})

Implementation

Options createOption(
        {EncryptType encryptType = EncryptType.weApi,
        UserAgent userAgent = UserAgent.random,
        Map<String, String> cookies = const {},
        String? realIP}) =>
    Options(contentType: ContentType.json.value, extra: {
      'encryptType': encryptType,
      'userAgent': userAgent,
      'cookies': cookies,
      'realIP': realIP
    });