isText static method

bool isText(
  1. dynamic node
)

Checks if the node is an instance of Text

Implementation

static bool isText(dynamic node) {
  return node['nodeType'] == 'text';
}