mapSelectionMode static method

dynamic mapSelectionMode(
  1. String? json
)

Implementation

static mapSelectionMode(String? json) {
  switch (json) {
    case 'Multiple':
      return SelectionMode.multiple;
    case 'Pattern':
      return SelectionMode.pattern;
    case 'Node':
      return SelectionMode.none;
    default:
      return SelectionMode.single;
  }
}