isHeader static method

bool isHeader(
  1. dynamic node
)

Checks if the node is a Header

Implementation

static bool isHeader(dynamic node) {
  return node['nodeType'].contains('heading');
}