PrismAnnouncement constructor
- required String id,
- required String message,
- int version = 1,
- PrismSeverity severity = PrismSeverity.info,
- String? actionLabel,
- VoidCallback? onAction,
- DateTime? startsAt,
- DateTime? endsAt,
- 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,
});