matches method

bool matches(
  1. Widget otherWidget
)

Implementation

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