resolveTextDecorationStyle static method
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;
}
}