hasParent property

bool get hasParent

Returns true if parent is not null, otherwise false.

Implementation

bool get hasParent => parent != null;