parse static method

DOMTemplateIntlMessage? parse(
  1. String s
)
override

Parses s and returns a DOMTemplateNode.

Throws StateError if s is not a valid template.

Implementation

static DOMTemplateIntlMessage? parse(String s) {
  s = s.trim();
  if (s.isEmpty) return null;
  return DOMTemplateIntlMessage(s);
}