isRoot property

bool isRoot

Returns true if this is a root node.

A root node is a node that contains multiple children. A class or an array.

Implementation

bool get isRoot => isClass || isArray;