Flash<T> constructor
const
Flash<T> ({
- Key? key,
- required FlashController<
T> controller, - required Widget child,
- FlashPosition? position,
- List<
FlashDismissDirection> dismissDirections = const [], - Curve forwardAnimationCurve = Curves.easeOut,
- Curve? reverseAnimationCurve = Curves.fastOutSlowIn,
- Animation<
Offset> slideAnimationCreator(- BuildContext context,
- FlashPosition? position,
- Animation<
double> parent, - Curve curve,
- Curve? reverseCurve,
Implementation
const Flash({
super.key,
required this.controller,
required this.child,
this.position,
this.dismissDirections = const [],
this.forwardAnimationCurve = Curves.easeOut,
this.reverseAnimationCurve = Curves.fastOutSlowIn,
this.slideAnimationCreator = _defaultSlideAnimationCreator,
});