SnackEvent constructor

SnackEvent({
  1. required Color color,
  2. required String title,
  3. Color foregroundColor = Colors.white,
  4. String? description,
  5. Duration duration = const Duration(seconds: 5),
  6. List<SnackAction> actions = const [],
  7. bool unique = false,
  8. SnackEventHapticType? hapticType,
  9. 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;