isEnabled method

bool isEnabled(
  1. FdcRowActionContext context
)

Resolves whether this action is enabled for context.

Implementation

bool isEnabled(FdcRowActionContext context) {
  if (_deleteAction && context.dataSetReadOnly) {
    return false;
  }
  return enabled?.call(context) ?? true;
}