buildWhenAttributesHasChanged function

bool buildWhenAttributesHasChanged(
  1. PageState previous,
  2. PageState current,
  3. CNode node
)

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);
}