ChannelReactionDeleteRequest constructor Null safety

ChannelReactionDeleteRequest(
  1. {required ChannelType channelType,
  2. required String channelUrl,
  3. required int messageId,
  4. required String key,
  5. String? userId}
)

Implementation

ChannelReactionDeleteRequest({
  required ChannelType channelType,
  required String channelUrl,
  required int messageId,
  required String key,
  String? userId,
}) : super(userId: userId) {
  url = '${channelType.urlString}/$channelUrl/messages/$messageId/reactions';
  body = {'reaction': key};
}