hasFocus static method
Returns true if the SuperTextField currently has focus.
By default, this method expects a single SuperTextField in the widget tree and
finds it byType. To specify one SuperTextField among many, pass a superTextFieldFinder.
Implementation
static bool hasFocus([Finder? superTextFieldFinder]) {
final finder = superTextFieldFinder ?? find.byType(SuperTextField);
final element = finder.evaluate().single as StatefulElement;
final state = element.state as SuperTextFieldState;
return state.hasFocus;
}