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