shouldDismissKeyboard method
Whether the on-screen keyboard should be dismissed.
This method is called whenever the sheet is dragged by the user.
Returns true
if the on-screen keyboard should be dismissed.
Implementation
@override
bool shouldDismissKeyboard(double userDragDelta) {
return userDragDelta > 0;
}