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