encodeTextAlignVertical static method
Encodes the given value
to the String representation. Supported values
are:
bottom
center
top
All other values, including null
, will result in null
.
Implementation
static String? encodeTextAlignVertical(TextAlignVertical? value) {
String? result;
if (value != null) {
switch (value) {
case TextAlignVertical.bottom:
result = 'bottom';
break;
case TextAlignVertical.center:
result = 'center';
break;
case TextAlignVertical.top:
result = 'top';
break;
}
}
return _stripDynamicNull(result);
}