EWSnackBar constructor
const
EWSnackBar({
- required Widget content,
- required SnackBarAction? action,
- Key? key,
- double? width,
- ShapeBorder? shape,
- double? actionOverflowThreshold,
- Animation<
double> ? animation, - Color? backgroundColor,
- Clip clipBehavior = Clip.hardEdge,
- Color? closeIconColor,
- DismissDirection? dismissDirection = DismissDirection.horizontal,
- Duration duration = const Duration(seconds: 3),
- double? elevation,
- HitTestBehavior? hitTestBehavior,
- EdgeInsetsGeometry? margin,
- VoidCallback? onVisible,
- EdgeInsetsGeometry? padding = const EdgeInsets.all(16),
- bool? showCloseIcon = false,
- SnackBarBehavior? behavior,
Implementation
const EWSnackBar({
required super.content,
required super.action,
super.key,
super.width,
super.shape,
super.actionOverflowThreshold,
super.animation,
super.backgroundColor,
super.clipBehavior = Clip.hardEdge,
super.closeIconColor,
super.dismissDirection = DismissDirection.horizontal,
super.duration = const Duration(seconds: 3),
super.elevation,
super.hitTestBehavior,
super.margin,
super.onVisible,
super.padding = const EdgeInsets.all(16),
super.showCloseIcon = false,
super.behavior,
});