getTextOverflow method

TextOverflow? getTextOverflow(
  1. String? overflow
)

Implementation

TextOverflow? getTextOverflow(String? overflow) {
  overflow ??= "default";
  switch (overflow) {
    case "clip":
      return TextOverflow.clip;
    case "ellipsis":
      return TextOverflow.ellipsis;
    case "fade":
      return TextOverflow.fade;
    case "visible":
      return TextOverflow.visible;
    default:
      return null;
  }
}