createPrivateList abstract method

Future<TwitterResponse<ListData, void>> createPrivateList({
  1. required String name,
  2. String? description,
})

Enables the authenticated user to create a private List.

Parameters

  • name: The name of the List you wish to create.

  • description: Description of the List.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE
  • OAuth 1.0a

Required Scopes

  • tweet.read
  • users.read
  • list.write

Rate Limits

  • User rate limit (OAuth 2.0 user Access Token): 300 requests per 15-minute window per each authenticated user

Reference

Implementation

Future<TwitterResponse<ListData, void>> createPrivateList(
    {required String name, String? description});