Change GlobalObjectKey.toString to strip away State<StatefulWidget>. (#14558)
This allows const GlobalObjectKey(0) to be concisely formatted as [GlobalObjectKey int#0000] in both Dart 2 and Dart 1 modes. Without this change it would be formatted as [GlobalObjectKey<State<StatefulWidget>> int#0000] because in Dart 2 types are instantiated to bounds. In addition to retaining general readability this also fixes few tests that rely on this short string representation (see test/widgets/global_keys_duplicated_test.dart).
V
Vyacheslav Egorov committed
d20125c3da84d7caf4c0cb8e2fc5c2cc58d1d9df
Parent: fa122f5
Committed by GitHub <noreply@github.com>
on 2/9/2018, 8:51:58 AM