isEmpty property

  1. @override
bool get isEmpty
override

Whether this annotation is considered "empty" and has no content.

Override to define what "empty" means for your annotation type. For GroupAnnotation with explicit/parent behavior, this returns true when there are no member nodes.

Returns false by default (annotations are not considered empty).

Implementation

@override
bool get isEmpty => behavior != GroupBehavior.bounds && _nodeIds.isEmpty;