Key
A key is an object that is used to compare widgets for equality. Differences will cause the widget to be rebuilt.
You can create your own keys by subclassing it and implementing Key.equals
and
Key.hashValue
. This default implementation compares keys via object identity.
Note that, in 99% of cases, you’ll want to use AutoKey
instead.