maybeNumberStyle static method
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;
}
}