isRoot property

bool isRoot

Whether current is the root node.

Implementation

bool get isRoot => _stack == null;