isMappable method

bool isMappable(
  1. DOMNode domNode, {
  2. DOMContext<T>? context,
})

Returns whether domNode can be mapped by a DOMTreeMap using the given context.

  • Called by DOMTreeMap.map

  • This is a lightweight capability check and must not mutate state or perform any mapping work.

Implementation

bool isMappable(DOMNode domNode, {DOMContext<T>? context}) => true;