Google is committed to advancing racial equity for Black communities. See how.

requestFocus method

void requestFocus ()

Requests that focus be transferred to the remote Scene represented by this connection.

Implementation

void requestFocus() {
  assert(viewRef != null);
  final args = <String, dynamic>{'viewRef': viewRef.reference.handle.handle};
  _platformViewChannel.invokeMethod('View.requestFocus', args);
}