isEvalSignature static method

bool isEvalSignature(
  1. String? value
)

Implementation

static bool isEvalSignature(String? value) {
  if ((value != null) &&
      (value.trim().toLowerCase().startsWith('eval(')) &&
      (value.trim().toLowerCase().endsWith(')'))) return true;
  if ((value != null) && (value.startsWith('='))) {
    return true;
  } else {
    return false;
  }
}