getTextDecoration method

TextDecoration? getTextDecoration(
  1. String? value
)

Implementation

TextDecoration? getTextDecoration(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }

  switch (value) {
    case "overline":
      return TextDecoration.overline;
    case "underline":
      return TextDecoration.underline;
    case "lineThrough":
      return TextDecoration.lineThrough;
    default:
      return null;
  }
}