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