GroupChannelMarkAsReadApiRequest constructor Null safety

GroupChannelMarkAsReadApiRequest(
  1. {List<String>? channelUrls,
  2. String? userId}
)

Implementation

GroupChannelMarkAsReadApiRequest({
  List<String>? channelUrls,
  String? userId,
}) : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/mark_as_read_all';
  body = {
    if (channelUrls != null && channelUrls.isNotEmpty)
      'channel_urls': channelUrls,
  };
}