hideSoft static method

void hideSoft(
  1. BuildContext context
)

隐藏软键盘

Implementation

static void hideSoft(BuildContext context) {
  FocusScope.of(context).requestFocus(FocusNode());
}