isRoot property

bool get isRoot

Whether this is the root (interactive) context.

Implementation

bool get isRoot => parent == null;