• Greg Spencer's avatar
    Add convenience accessor for primaryFocus (#43859) · 3a30722f
    Greg Spencer authored
    This adds accessors for WidgetsBinding.instance.focusManager and WidgetsBinding.instance.focusManager.primaryFocus so that they can be more easily found in IDEs and accessed.
    
    This adds a top level getter for WidgetsBinding.instance.focusManager.primaryFocus called primaryFocus, and a static accessor FocusManager.instance that returns WidgetsBinding.instance.focusManager.
    3a30722f
material_button_test.dart 24.2 KB