encodeTextLeadingDistribution static method
Encodes the value
into a String representation. Supported values are:
even
proportional
All other values, including null
, will result in null
.
Implementation
static String? encodeTextLeadingDistribution(TextLeadingDistribution? value) {
String? result;
if (value != null) {
switch (value) {
case TextLeadingDistribution.even:
result = 'even';
break;
case TextLeadingDistribution.proportional:
result = 'proportional';
break;
}
}
return result;
}