Flash<T>.bar constructor
Flash<T>.bar ({
- Key? key,
- required FlashController controller,
- required Widget child,
- EdgeInsets margin = EdgeInsets.zero,
- BorderRadius? borderRadius,
- Color? borderColor,
- double borderWidth = 1.0,
- Brightness brightness = Brightness.light,
- Color backgroundColor = Colors.white,
- List<
BoxShadow> ? boxShadows, - Gradient? backgroundGradient,
- GestureTapCallback? onTap,
- bool enableDrag = true,
- HorizontalDismissDirection? horizontalDismissDirection,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.fastOutSlowIn,
- FlashPosition? position = FlashPosition.bottom,
- FlashStyle? style = FlashStyle.floating,
- Curve forwardAnimationCurve = Curves.fastOutSlowIn,
- Curve reverseAnimationCurve = Curves.fastOutSlowIn,
- double? barrierBlur,
- Color? barrierColor,
- 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);