clearFocus method Null safety

Future<void> clearFocus()

Clears the current focus. It will clear also, for example, the current text selection.

Official Android API: https://developer.android.com/reference/android/view/ViewGroup#clearFocus()

Official iOS API: https://developer.apple.com/documentation/uikit/uiresponder/1621097-resignfirstresponder

Implementation

Future<void> clearFocus() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await _channel.invokeMethod('clearFocus', args);
}