slideAction method

Widget slideAction(
  1. BuildContext context
)

Implementation

Widget slideAction(BuildContext context) {
  return SlidableAction(
    label: label,
    backgroundColor: color ?? Theme.of(context).colorScheme.primary,
    foregroundColor: Theme.of(context).colorScheme.onPrimary,
    icon: icon,
    onPressed: (e) {
      if (onAction != null) onAction!();
    },
  );
}