toJson method

  1. @override
String? toJson(
  1. ScrollViewKeyboardDismissBehavior? object
)
override

Implementation

@override
String? toJson(ScrollViewKeyboardDismissBehavior? object) {
  if (object == null) return null;

  switch (object) {
    case ScrollViewKeyboardDismissBehavior.manual:
      return 'manual';

    case ScrollViewKeyboardDismissBehavior.onDrag:
      return 'onDrag';
  }
}