encodeTextInputAction static method
Encodes the value
into a String representation. Supported values are:
continueAction
done
emergencyCall
go
join
newline
next
none
previous
route
search
send
unspecified
All other values, including null
, will result in null
.
Implementation
static String? encodeTextInputAction(TextInputAction? value) {
String? result;
if (value != null) {
switch (value) {
case TextInputAction.continueAction:
result = 'continueAction';
break;
case TextInputAction.done:
result = 'done';
break;
case TextInputAction.emergencyCall:
result = 'emergencyCall';
break;
case TextInputAction.go:
result = 'go';
break;
case TextInputAction.join:
result = 'join';
break;
case TextInputAction.newline:
result = 'newline';
break;
case TextInputAction.next:
result = 'next';
break;
case TextInputAction.none:
result = 'none';
break;
case TextInputAction.previous:
result = 'previous';
break;
case TextInputAction.route:
result = 'route';
break;
case TextInputAction.search:
result = 'search';
break;
case TextInputAction.send:
result = 'send';
break;
case TextInputAction.unspecified:
result = 'unspecified';
break;
}
}
return result;
}