getActionPane method

ActionPane? getActionPane(
  1. bool left,
  2. BuildContext context
)

Implementation

ActionPane? getActionPane(bool left, BuildContext context) {
  if (slideLeft == left)
    return ActionPane(
      extentRatio: extentRatio,
      motion: const ScrollMotion(),
      dismissible: (onAction == null || !dismissible)
          ? null
          : DismissiblePane(
              onDismissed: () {
                onAction!();
              },
            ),
      children: [
        slideAction(context),
        if (onSecondaryAction != null) secondarySlideAction(context),
      ],
    );

  return null;
}