closeKeyboard function

void closeKeyboard(
  1. BuildContext context
)

More readable than FocusScope.of(context).unfocus();

Implementation

void closeKeyboard(BuildContext context) {
  FocusScope.of(context).unfocus();
}