mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
no const contructor for GlobalKey (#8038)
This commit is contained in:
parent
490a897382
commit
60f5cbbad2
@ -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
|
||||
/// 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.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user