toPdfWrapAlignment method

WrapAlignment toPdfWrapAlignment()

Converts the WrapAlignment to a pw.WrapAlignment.

Implementation

pw.WrapAlignment toPdfWrapAlignment() {
  switch (this) {
    case WrapAlignment.start:
      return pw.WrapAlignment.start;
    case WrapAlignment.end:
      return pw.WrapAlignment.end;
    case WrapAlignment.center:
      return pw.WrapAlignment.center;
    case WrapAlignment.spaceBetween:
      return pw.WrapAlignment.spaceBetween;
    case WrapAlignment.spaceAround:
      return pw.WrapAlignment.spaceAround;
    case WrapAlignment.spaceEvenly:
      return pw.WrapAlignment.spaceEvenly;
  }
}