tryParse static method

DOMTemplateNode? tryParse(
  1. String? s
)

Tries to parse s.

Returns null if s has no template or a not valid template code.

Implementation

static DOMTemplateNode? tryParse(String? s) {
  try {
    return _parse(s, true);
  } catch (e) {
    return null;
  }
}