getTextOverflow method
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;
}
}