ChannelReactionAddRequest constructor Null safety

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

Implementation

ChannelReactionAddRequest({
  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, 'user_id': userId};
}