toPdfTextOverflow method
TextOverflow
toPdfTextOverflow()
Converts the TextOverflow to a pw.TextOverflow
.
Implementation
pw.TextOverflow toPdfTextOverflow() {
switch (this) {
case TextOverflow.clip:
return pw.TextOverflow.clip;
case TextOverflow.visible:
return pw.TextOverflow.visible;
// not supported in pdf package:
// - TextOverflow.ellipsis
// - TextOverflow.fade
default:
return pw.TextOverflow.span;
}
}