FocusScope.of(context).unfocus()
// The correct way of closing the keyboard is FocusScope.of(context).unfocus();