parseTextDecoration function
Implementation
TextDecoration parseTextDecoration(String? textDecorationString) {
TextDecoration textDecoration = TextDecoration.none;
switch (textDecorationString) {
case "lineThrough":
textDecoration = TextDecoration.lineThrough;
break;
case "overline":
textDecoration = TextDecoration.overline;
break;
case "underline":
textDecoration = TextDecoration.underline;
break;
case "none":
default:
textDecoration = TextDecoration.none;
}
return textDecoration;
}