Commit 7fee0c52 authored by Phil Quitslund's avatar Phil Quitslund Committed by Flutter GitHub Bot

mark widget == and hashCode as nonVirtual (#46900)

parent 301b09f4
......@@ -12,6 +12,7 @@ library foundation;
export 'package:meta/meta.dart' show
immutable,
mustCallSuper,
nonVirtual,
optionalTypeArgs,
protected,
required,
......
......@@ -451,6 +451,13 @@ abstract class Widget extends DiagnosticableTree {
properties.defaultDiagnosticsTreeStyle = DiagnosticsTreeStyle.dense;
}
@override
@nonVirtual
bool operator ==(dynamic other) => super==other;
@override
@nonVirtual
int get hashCode => super.hashCode;
/// Whether the `newWidget` can be used to update an [Element] that currently
/// has the `oldWidget` as its configuration.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment