isRoot property

bool get isRoot

Whether this is a root comment (not a reply).

Returns true if parentId is null, false otherwise.

Implementation

bool get isRoot => parentId == null;