maybeNumberStyle static method

PassTextNumberStyle? maybeNumberStyle(
  1. String? style
)

Implementation

static PassTextNumberStyle? maybeNumberStyle(String? style) {
  switch (style) {
    case 'PKNumberStyleDecimal':
      return PassTextNumberStyle.decimal;
    case 'PKNumberStylePercent':
      return PassTextNumberStyle.percent;
    case 'PKNumberStyleScientific':
      return PassTextNumberStyle.scientific;
    case 'PKNumberStyleSpellOut':
      return PassTextNumberStyle.spellOut;
    default:
      return null;
  }
}