SnackbarModal constructor

const SnackbarModal({
  1. Key? key,
  2. required Widget child,
  3. required Alignment position,
  4. required bool isDismissing,
  5. bool isSwipeable = true,
  6. Duration? autoDismissDuration,
  7. DateTime? autoDismissDeadline,
  8. dynamic onSwipeDismiss(
    1. String direction
    )?,
  9. int stackIndex = 0,
  10. int maxStacked = 3,
  11. String swipeDirection = '',
  12. double? width,
  13. Offset? offset,
  14. VoidCallback? onTap,
  15. String? snackbarId,
  16. SnackbarModalController? controller,
  17. Color barrierColor = Colors.transparent,
  18. bool blockBackgroundInteraction = false,
})

Creates a snackbar modal

Implementation

const SnackbarModal({
  super.key,
  required this.child,
  required this.position,
  required this.isDismissing,
  this.isSwipeable = true,
  this.autoDismissDuration,
  this.autoDismissDeadline,
  this.onSwipeDismiss,
  this.stackIndex = 0,
  this.maxStacked = 3,
  this.swipeDirection = '',
  this.width,
  this.offset,
  this.onTap,
  this.snackbarId,
  this.controller,
  this.barrierColor = Colors.transparent,
  this.blockBackgroundInteraction = false,
});