expressionToTextDecorationStyle static method

TextDecorationStyle expressionToTextDecorationStyle(
  1. LiteralTerm value
)

Implementation

static TextDecorationStyle expressionToTextDecorationStyle(css.LiteralTerm value) {
  switch(value.text) {
    case "wavy":
      return TextDecorationStyle.wavy;
    case "dotted":
      return TextDecorationStyle.dotted;
    case "dashed":
      return TextDecorationStyle.dashed;
    case "double":
      return TextDecorationStyle.double;
    default:
      return TextDecorationStyle.solid;
  }
}