clearFocus method Null safety

  1. @override
Future<void> clearFocus()
override

Clears the focus from the Android View if it is focused.

Implementation

@override
Future<void> clearFocus() {
  if (_state != _AndroidViewState.created) {
    return Future<void>.value();
  }
  return SystemChannels.platform_views.invokeMethod<void>('clearFocus', viewId);
}