• Vyacheslav Egorov's avatar
    Change GlobalObjectKey.toString to strip away State<StatefulWidget>. (#14558) · d20125c3
    Vyacheslav Egorov authored
    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).
    d20125c3
Name
Last commit
Last update
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
analysis_options_repo.yaml Loading commit data...
appveyor.yml Loading commit data...
flutter_console.bat Loading commit data...