# channels method Null safety

Future<Channels> channels(

1. [List<String>? publicIds]

)

사용자가 특정 카카오톡 채널을 추가했는지 확인

## Implementation

    Future<Channels> channels([List<String>? publicIds]) async {
      return ApiFactory.handleApiError(() async {
        Response response = await _dio.get(Constants.v1ChannelsPath,
            queryParameters: publicIds == null
                ? {}
                : {Constants.channelPublicIds: jsonEncode(publicIds)});
        return Channels.fromJson(response.data);
      });
    }