SnackEvent constructor
SnackEvent({
- required Color color,
- required String title,
- Color foregroundColor = Colors.white,
- String? description,
- Duration duration = const Duration(seconds: 5),
- List<
SnackAction> actions = const [], - bool unique = false,
- SnackEventHapticType? hapticType,
- VoidCallback? onTap,
Implementation
SnackEvent({
required this.color,
required this.title,
this.foregroundColor = Colors.white,
this.description,
this.duration = const Duration(seconds: 5),
this.actions = const [],
this.unique = false,
this.hapticType,
this.onTap,
}) : _timestamp = unique ? DateTime.now().millisecondsSinceEpoch : null;