shouldRemoveWhenEmpty property

  1. @override
bool get shouldRemoveWhenEmpty
override

Whether this node should be removed when it becomes empty.

Used by group-like nodes that should be auto-deleted when they have no members. Works in conjunction with isEmpty.

Default is false.

Implementation

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