of static method
Finds the nearest ancestor FocusNode in the widget tree.
Implementation
static FocusNode? of(BuildContext context) {
final scope = context.dependOnInheritedWidgetOfExactType<FocusMarker>();
return scope?.focusNode;
}
Finds the nearest ancestor FocusNode in the widget tree.
static FocusNode? of(BuildContext context) {
final scope = context.dependOnInheritedWidgetOfExactType<FocusMarker>();
return scope?.focusNode;
}