getTextInputAction method
Implementation
TextInputAction? getTextInputAction(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value) {
case "none":
return TextInputAction.none;
case "search":
return TextInputAction.search;
case "continueAction":
return TextInputAction.continueAction;
case "done":
return TextInputAction.done;
case "go":
return TextInputAction.go;
case "next":
return TextInputAction.next;
case "previous":
return TextInputAction.previous;
case "emergencyCall":
return TextInputAction.emergencyCall;
case "join":
return TextInputAction.join;
case "newline":
return TextInputAction.newline;
case "route":
return TextInputAction.route;
case "send":
return TextInputAction.send;
case "unspecified":
return TextInputAction.unspecified;
default:
return null;
}
}