secondarySlideAction method

Widget secondarySlideAction(
  1. BuildContext context
)

Implementation

Widget secondarySlideAction(BuildContext context) {
  return SlidableAction(
    label: secondaryLabel,
    backgroundColor:
        secondaryColor ?? Theme.of(context).colorScheme.secondary,
    foregroundColor: Theme.of(context).colorScheme.onPrimary,
    icon: secondaryIcon,
    onPressed: (e) {
      if (onSecondaryAction != null) onSecondaryAction!();
    },
  );
}