toPdfTextAlign method

TextAlign? toPdfTextAlign()

Implementation

pw.TextAlign? toPdfTextAlign() {
  switch (this) {
    case TextAlign.center:
      return pw.TextAlign.center;
    case TextAlign.justify:
      return pw.TextAlign.justify;
    case TextAlign.left:
      return pw.TextAlign.left;
    case TextAlign.right:
      return pw.TextAlign.right;
    case TextAlign.start:
      return pw.TextAlign.start;
    case TextAlign.end:
      return pw.TextAlign.end;
  }
}