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({
super.key,
this.icon,
this.iconWidget,
this.caption,
Color? color,
this.foregroundColor,
super.onTap,
super.closeOnTap,
}) : assert(icon != null || iconWidget != null,
'Either set icon or iconWidget.'),
super(
color: color ?? Colors.white,
);