Commit 60f5cbba authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by Adam Barth

no const contructor for GlobalKey (#8038)

parent 490a8973
...@@ -154,7 +154,7 @@ abstract class GlobalKey<T extends State<StatefulWidget>> extends Key { ...@@ -154,7 +154,7 @@ abstract class GlobalKey<T extends State<StatefulWidget>> extends Key {
/// ///
/// The label is purely for debugging and not used for comparing the identity /// The label is purely for debugging and not used for comparing the identity
/// of the key. /// of the key.
const factory GlobalKey({ String debugLabel }) = LabeledGlobalKey<T>._; // the label is purely for debugging purposes and is otherwise ignored factory GlobalKey({ String debugLabel }) = LabeledGlobalKey<T>._; // the label is purely for debugging purposes and is otherwise ignored
/// Creates a global key without a label. /// Creates a global key without a label.
/// ///
......
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