getKeyboardAction static method

TextInputAction? getKeyboardAction(
  1. dynamic value
)

Get the appropriate keyboard action based on string value

Implementation

static TextInputAction? getKeyboardAction(dynamic value) {
  switch (value) {
    case 'done':
      return TextInputAction.done;
    case 'go':
      return TextInputAction.go;
    case 'search':
      return TextInputAction.search;
    case 'send':
      return TextInputAction.send;
    case 'next':
      return TextInputAction.next;
    case 'previous':
      return TextInputAction.previous;
  }
  return null;
}