Flash<T> constructor

const Flash<T>({
  1. Key? key,
  2. required FlashController<T> controller,
  3. required Widget child,
  4. FlashPosition? position,
  5. List<FlashDismissDirection> dismissDirections = const [],
  6. Curve forwardAnimationCurve = Curves.easeOut,
  7. Curve? reverseAnimationCurve = Curves.fastOutSlowIn,
  8. Animation<Offset> slideAnimationCreator(
    1. BuildContext context,
    2. FlashPosition? position,
    3. Animation<double> parent,
    4. Curve curve,
    5. Curve? reverseCurve,
    ) = _defaultSlideAnimationCreator,
})

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,
});