diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 2a5aedc7b8..a3b6409d8d 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -42,6 +42,12 @@ class ValueKey extends Key { String toString() => '[\'$value\']'; } +/// A [Key] that is only equal to itself. +class UniqueKey extends Key { + const UniqueKey() : super.constructor(); + String toString() => '[$hashCode]'; +} + /// A kind of [Key] that takes its identity from the object used as its value. /// /// Used to tie the identity of a Widget to the identity of an object used to