Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9e3ba111
Commit
9e3ba111
authored
Oct 21, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1710 from Hixie/unique-key
UniqueKey
parents
7acc24e4
188aade2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+6
-0
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
9e3ba111
...
@@ -42,6 +42,12 @@ class ValueKey<T> extends Key {
...
@@ -42,6 +42,12 @@ class ValueKey<T> extends Key {
String
toString
()
=>
'[
\'
$value
\'
]'
;
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.
/// 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
/// Used to tie the identity of a Widget to the identity of an object used to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment