parseTextOverflow function

TextOverflow? parseTextOverflow(
  1. String? textOverflowString
)

Implementation

TextOverflow? parseTextOverflow(String? textOverflowString) {
  TextOverflow? textOverflow;
  switch (textOverflowString) {
    case "ellipsis":
      textOverflow = TextOverflow.ellipsis;
      break;
    case "clip":
      textOverflow = TextOverflow.clip;
      break;
    case "fade":
      textOverflow = TextOverflow.fade;
      break;
    default:
      textOverflow = TextOverflow.fade;
  }
  return textOverflow;
}