isTopLevelBlock static method
Checks if the node is an instance of TopLevelBlocks
Implementation
static bool isTopLevelBlock(dynamic node) {
return TopLevelBlockEnum.fromValue(node['nodeType']) != null;
}
Checks if the node is an instance of TopLevelBlocks
static bool isTopLevelBlock(dynamic node) {
return TopLevelBlockEnum.fromValue(node['nodeType']) != null;
}