canUpdate method

bool canUpdate(
  1. Page other
)

Whether this page can be updated with the other page.

Two pages are consider updatable if they have same the runtimeType and key.

Implementation

bool canUpdate(Page<dynamic> other) {
  return other.runtimeType == runtimeType &&
         other.key == key;
}