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
5a92e2d0
Commit
5a92e2d0
authored
Mar 15, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve dartdoc for GlobalKey
Fixes #2708
parent
dac1d4a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+15
-3
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
5a92e2d0
...
@@ -84,9 +84,21 @@ class ObjectKey extends Key {
...
@@ -84,9 +84,21 @@ class ObjectKey extends Key {
typedef
void
GlobalKeyRemoveListener
(
GlobalKey
key
);
typedef
void
GlobalKeyRemoveListener
(
GlobalKey
key
);
/// A GlobalKey is one that must be unique across the entire application. It is
/// A GlobalKey is a [Key] that must be unique across the widget tree.
/// used by widgets that need to communicate with other widgets across the
///
/// application's element tree.
/// Global keys uniquely indentify widget subtrees. The GlobalKey object provides
/// access to other objects that are associated with the subtree, such as the subtree's
/// [BuildContext] and, for [StatefulWidget]s, the subtree's [State].
///
/// Widgets that have global keys reparent their subtrees when they are moved
/// from one location in the tree to another location in the tree. In order to
/// reparent its subtree, a widget must arrive at its new location in the tree
/// in the same animation frame in which it was removed from its old location in
/// the tree.
///
/// GlobalKeys are relatively expensive. If you don't need any of the features
/// listed above, consider using a [Key], [ValueKey], [ObjectKey], or
/// [UniqueKey] instead.
abstract
class
GlobalKey
<
T
extends
State
<
StatefulWidget
>>
extends
Key
{
abstract
class
GlobalKey
<
T
extends
State
<
StatefulWidget
>>
extends
Key
{
/// Constructs a LabeledGlobalKey, which is a GlobalKey with a label used for debugging.
/// Constructs a LabeledGlobalKey, which is a GlobalKey with a label used for debugging.
/// The label is not used for comparing the identity of the key.
/// The label is not used for comparing the identity of the key.
...
...
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