from static method

DOMTemplate? from(
  1. Object? value
)

Implementation

static DOMTemplate? from(Object? value) {
  if (value == null) return null;
  if (value is DOMTemplate) return value;
  if (value is String) return DOMTemplate.parse(value);
  return null;
}