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