isRoot property

bool get isRoot

Whether this is the root definition (has no parent).

Implementation

bool get isRoot => parent == null;