createList method

Future<String> createList(
  1. String name
)

Create a contact list. Returns the ID of the created list.

Implementation

Future<String> createList(String name) async {
  final id = await _client.post<String>('/audience/lists', body: {'name': name});
  return id;
}