yCloseInputMethod function

void yCloseInputMethod({
  1. BuildContext? context,
})

Implementation

void yCloseInputMethod({BuildContext? context}) {
  try {
    FocusScope.of(context ?? yPages.last.context).requestFocus(FocusNode());
  } catch (e) {}
}