clearFocus method

void clearFocus()

Clear current context focus. This is the cleanest, official way.

Implementation

void clearFocus() => FocusScope.of(this).unfocus();