EWSnackBar constructor

const EWSnackBar({
  1. required Widget content,
  2. required SnackBarAction? action,
  3. Key? key,
  4. double? width,
  5. ShapeBorder? shape,
  6. double? actionOverflowThreshold,
  7. Animation<double>? animation,
  8. Color? backgroundColor,
  9. Clip clipBehavior = Clip.hardEdge,
  10. Color? closeIconColor,
  11. DismissDirection? dismissDirection = DismissDirection.horizontal,
  12. Duration duration = const Duration(seconds: 3),
  13. double? elevation,
  14. HitTestBehavior? hitTestBehavior,
  15. EdgeInsetsGeometry? margin,
  16. VoidCallback? onVisible,
  17. EdgeInsetsGeometry? padding = const EdgeInsets.all(16),
  18. bool? showCloseIcon = false,
  19. 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,
});