copyWith method

MessageSendOptions copyWith({
  1. bool? disableNotification,
  2. bool? fromBackground,
  3. bool? protectContent,
  4. bool? updateOrderOfInstalledStickerSets,
  5. MessageSchedulingState? schedulingState,
  6. int? sendingId,
})

Implementation

MessageSendOptions copyWith({
  bool? disableNotification,
  bool? fromBackground,
  bool? protectContent,
  bool? updateOrderOfInstalledStickerSets,
  MessageSchedulingState? schedulingState,
  int? sendingId,
}) =>
    MessageSendOptions(
      disableNotification: disableNotification ?? this.disableNotification,
      fromBackground: fromBackground ?? this.fromBackground,
      protectContent: protectContent ?? this.protectContent,
      updateOrderOfInstalledStickerSets: updateOrderOfInstalledStickerSets ??
          this.updateOrderOfInstalledStickerSets,
      schedulingState: schedulingState ?? this.schedulingState,
      sendingId: sendingId ?? this.sendingId,
    );