resolveTextDecorationStyle static method

TextDecorationStyle resolveTextDecorationStyle(
  1. String present
)

Implementation

static TextDecorationStyle resolveTextDecorationStyle(String present) {
  switch (present) {
    case 'double':
      return TextDecorationStyle.double;
    case 'dotted':
      return TextDecorationStyle.dotted;
    case 'dashed':
      return TextDecorationStyle.dashed;
    case 'wavy':
      return TextDecorationStyle.wavy;
    case 'solid':
    default:
      return TextDecorationStyle.solid;
  }
}