isRoot property

bool get isRoot

Whether at the root (interactive) context.

Implementation

bool get isRoot => _stack.length == 1;