PrismAnnouncement constructor

const PrismAnnouncement({
  1. required String id,
  2. required String message,
  3. int version = 1,
  4. PrismSeverity severity = PrismSeverity.info,
  5. String? actionLabel,
  6. VoidCallback? onAction,
  7. DateTime? startsAt,
  8. DateTime? endsAt,
  9. String? title,
})

Creates an announcement.

Implementation

const PrismAnnouncement({
  required this.id,
  required this.message,
  this.version = 1,
  this.severity = PrismSeverity.info,
  this.actionLabel,
  this.onAction,
  this.startsAt,
  this.endsAt,
  this.title,
});