buildWhenAttributesHasChanged function
Implementation
bool buildWhenAttributesHasChanged(
PageState previous, PageState current, CNode node) {
final oldNode = previous.nodes.firstWhereOrNull((e) => e.id == node.id);
final newNode = current.nodes.firstWhereOrNull((e) => e.id == node.id);
const checker = DeepCollectionEquality();
return checker.equals(oldNode?.getAttributes, newNode?.getAttributes);
}