IconSlideAction constructor
const
IconSlideAction({})
Creates a slide action with an icon, a caption if set and a background color.
The closeOnTap
argument must not be null.
Implementation
const IconSlideAction({
Key? key,
this.icon,
this.iconWidget,
this.caption,
Color? color,
this.foregroundColor,
VoidCallback? onTap,
bool closeOnTap = _kCloseOnTap,
}) : assert(icon != null || iconWidget != null,
'Either set icon or iconWidget.'),
super(
key: key,
color: color ?? Colors.white,
onTap: onTap,
closeOnTap: closeOnTap,
);