shouldRemoveWhenEmpty property

  1. @override
bool get shouldRemoveWhenEmpty
override

Whether this annotation should be automatically removed when empty.

Override to return true if your annotation should be deleted when isEmpty becomes true (e.g., after all member nodes are deleted).

Returns false by default. GroupAnnotation returns true for explicit behavior only.

Implementation

@override
bool get shouldRemoveWhenEmpty => behavior == GroupBehavior.explicit;