hasExpressions static method

bool hasExpressions(
  1. String message
)

True if message contains any ICU expression ({name} or {var, …, …}). False for plain strings (no {} at all, or only escaped braces).

Implementation

static bool hasExpressions(String message) {
  var any = false;
  _walk(message, (_) => any = true);
  return any;
}