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. dynamic onSwipeDismiss(
    1. String direction
    )?,
  8. int stackIndex = 0,
  9. int maxStacked = 3,
  10. String swipeDirection = '',
  11. double? width,
  12. Offset? offset,
  13. VoidCallback? onTap,
  14. String? snackbarId,
  15. SnackbarModalController? controller,
  16. Color barrierColor = Colors.transparent,
})

Creates a snackbar modal

Implementation

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