shouldDismissKeyboard method

  1. @override
bool shouldDismissKeyboard(
  1. double userDragDelta
)
override

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;
}