matches method

bool matches(
  1. Widget otherWidget

Checks if two widgets match during a ReassemblableNode reassembly.

  • If the return value is true, the child Node is updated.

  • If the return value is false, the child Node is replaced by a new one.


bool matches(final Widget otherWidget) =>
    runtimeType == otherWidget.runtimeType && key == otherWidget.key;