CustomNotification constructor

CustomNotification({
  1. String? sessionId,
  2. NIMSessionType? sessionType,
  3. String? fromAccount,
  4. int? time,
  5. String? content,
  6. String? apnsText,
  7. Map<String, dynamic>? pushPayload,
  8. CustomNotificationConfig? config,
  9. NIMAntiSpamOption? antiSpamOption,
  10. String? env,
  11. bool? sendToOnlineUserOnly = true,
})

Implementation

CustomNotification(
    {this.sessionId,
    this.sessionType,
    this.fromAccount,
    this.time,
    this.content,
    this.apnsText,
    this.pushPayload,
    this.config,
    this.antiSpamOption,
    this.env,
    this.sendToOnlineUserOnly = true});