collection method

Future<Collections> collection({
  1. required String username,
  2. required int id,
  3. String? apiKey,
})

Implementation

Future<Collections> collection({
  required String username,
  required int id,
  String? apiKey,
}) async {
  return Collections.fromJson(
    await _request(
      Uri.parse(
        '$_baseUrl/collections/$username/$id${apiKey != null ? '?apikey=$apiKey' : ''}',
      ),
    ),
  );
}