AnimatedSnackbar constructor

const AnimatedSnackbar({
  1. required String message,
  2. required VoidCallback onClose,
  3. ToastType type = ToastType.elastic,
  4. ToastPosition position = ToastPosition.top,
  5. IconData? icon,
  6. Color? color,
  7. Duration duration = const Duration(milliseconds: 3000),
  8. Offset? customOffset,
  9. Widget? child,
  10. Key? key,
})

Implementation

const AnimatedSnackbar({
  required this.message,
  required this.onClose,
  this.type = ToastType.elastic,
  this.position = ToastPosition.top,
  this.icon,
  this.color,
  this.duration = const Duration(milliseconds: 3000),
  this.customOffset,
  this.child,
  Key? key,
}) : super(key: key);