getKeyboardDismissBehavior method

ScrollViewKeyboardDismissBehavior? getKeyboardDismissBehavior(
  1. String? value
)

Implementation

ScrollViewKeyboardDismissBehavior? getKeyboardDismissBehavior(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }

  switch (value) {
    case "onDrag":
      return ScrollViewKeyboardDismissBehavior.onDrag;
    case "manual":
      return ScrollViewKeyboardDismissBehavior.manual;
    default:
      return null;
  }
}