TotalScheduledMessageCountParams constructor Null safety

TotalScheduledMessageCountParams(
  1. {String? channelUrl,
  2. ChannelType? channelType,
  3. String? senderId,
  4. List<ScheduledStatus>? statuses,
  5. MessageTypeFilter? messageType}
)

Implementation

TotalScheduledMessageCountParams({
  this.channelUrl,
  this.channelType,
  this.senderId,
  this.statuses,
  this.messageType,
}) {
  if (channelType != ChannelType.group) {
    throw (SBError(message: 'Channel Type Group is ONLY allowed'));
  }
}