requestFocus property

bool get requestFocus

When the route state is updated, request focus if the current route is at the top.

If not provided in the constructor, Navigator.requestFocus is used instead.

Implementation

bool get requestFocus => _requestFocus ?? navigator?.widget.requestFocus ?? false;