invoke method

void invoke(
  1. FdcRowActionContext context
)

Executes this action for context when it is enabled.

Implementation

void invoke(FdcRowActionContext context) {
  if (!isEnabled(context)) {
    return;
  }

  if (_deleteAction) {
    context.deleteRow();
    return;
  }

  if (activateRowOnPressed && !context.activateRow()) {
    return;
  }
  onPressed?.call(context);
}