no const contructor for GlobalKey (#8038)

This commit is contained in:
Alexandre Ardhuin 2017-02-10 00:17:45 +01:00 committed by Adam Barth
parent 490a897382
commit 60f5cbbad2

View File

@ -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.
///