# requestFocus method | |
*[<Null safety>](https://dart.dev/null-safety)* | |
Future<void> requestFocus | |
(int viewRef) | |
<p>Requests that focus be transferred to the child view referred to by | |
viewRef. Note that this method should only be used with Scenics legacy | |
GFX API</p> | |
## Implementation | |
```dart | |
Future<void> requestFocus(int viewRef) async { | |
return FocusState.instance.requestFocus(viewRef); | |
} | |
``` | |