SnackbarModal constructor
const
SnackbarModal({
- Key? key,
- required Widget child,
- required Alignment position,
- required bool isDismissing,
- bool isSwipeable = true,
- Duration? autoDismissDuration,
- dynamic onSwipeDismiss(
- String direction
- int stackIndex = 0,
- int maxStacked = 3,
- String swipeDirection = '',
- double? width,
- Offset? offset,
- VoidCallback? onTap,
- String? snackbarId,
- SnackbarModalController? controller,
- 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,
});