createList method

Future<UserFollowsList> createList(
  1. String title
)
inherited

POST /api/v1/lists

  • authenticated (requires user)
  • write write:lists

Implementation

Future<UserFollowsList> createList(String title) async {
  final response = await request(
    Method.post,
    "/api/v1/lists",
    authenticated: true,
    payload: {
      "title": title,
    },
  );

  return UserFollowsList.fromJson(json.decode(response.body));
}