Flash<T>.bar constructor

Flash<T>.bar({
  1. Key? key,
  2. required FlashController controller,
  3. required Widget child,
  4. EdgeInsets margin = EdgeInsets.zero,
  5. BorderRadius? borderRadius,
  6. Color? borderColor,
  7. double borderWidth = 1.0,
  8. Brightness brightness = Brightness.light,
  9. Color backgroundColor = Colors.white,
  10. List<BoxShadow>? boxShadows,
  11. Gradient? backgroundGradient,
  12. GestureTapCallback? onTap,
  13. bool enableDrag = true,
  14. HorizontalDismissDirection? horizontalDismissDirection,
  15. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  16. Curve insetAnimationCurve = Curves.fastOutSlowIn,
  17. FlashPosition? position = FlashPosition.bottom,
  18. FlashStyle? style = FlashStyle.floating,
  19. Curve forwardAnimationCurve = Curves.fastOutSlowIn,
  20. Curve reverseAnimationCurve = Curves.fastOutSlowIn,
  21. double? barrierBlur,
  22. Color? barrierColor,
  23. bool barrierDismissible = true,
})

Implementation

Flash.bar({
  Key? key,
  required this.controller,
  required this.child,
  this.margin = EdgeInsets.zero,
  this.borderRadius,
  this.borderColor,
  this.borderWidth = 1.0,
  this.brightness = Brightness.light,
  this.backgroundColor = Colors.white,
  this.boxShadows,
  this.backgroundGradient,
  this.onTap,
  this.enableDrag = true,
  this.horizontalDismissDirection,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.fastOutSlowIn,
  this.position = FlashPosition.bottom,
  this.style = FlashStyle.floating,
  this.forwardAnimationCurve = Curves.fastOutSlowIn,
  this.reverseAnimationCurve = Curves.fastOutSlowIn,
  this.barrierBlur,
  this.barrierColor,
  this.barrierDismissible = true,
})  : alignment = null,
      assert(style != null),
      assert(position != null),
      super(key: key);