ClosableSlideAction constructor

const ClosableSlideAction({
  1. Key? key,
  2. Color? color,
  3. VoidCallback? onTap,
  4. bool closeOnTap = _kCloseOnTap,
})

Creates a slide that closes when a tap has occurred if closeOnTap is true.

The closeOnTap argument must not be null.

Implementation

const ClosableSlideAction({
  Key? key,
  this.color,
  this.onTap,
  this.closeOnTap = _kCloseOnTap,
}) : super(key: key);