isBlock static method

bool isBlock(
  1. dynamic node
)

Checks if the node is an instance of Block

Implementation

static bool isBlock(dynamic node) {
  return BLOCKS.fromValue(node['nodeType']) != null;
}