maybeTextAlign static method

PassTextAlign? maybeTextAlign(
  1. String? align
)

Implementation

static PassTextAlign? maybeTextAlign(String? align) {
  switch (align) {
    case 'PKTextAlignmentLeft':
      return PassTextAlign.left;
    case 'PKTextAlignmentCenter':
      return PassTextAlign.center;
    case 'PKTextAlignmentRight':
      return PassTextAlign.right;
    default:
      return PassTextAlign.natural;
  }
}