removeNodeWhere method
removeNodeWhere
Removes all nodes that satisfy the given condition.
Implementation
void removeNodeWhere(bool Function(NodeModel) test) {
_notifier.value = data.copyWith(
nodes: data.nodes.where((e) => !test(e)).toList(),
);
}