maybeDateStyle static method

PassTextDateStyle? maybeDateStyle(
  1. String? style
)

Implementation

static PassTextDateStyle? maybeDateStyle(String? style) {
  switch (style) {
    case 'PKDateStyleNone':
      return PassTextDateStyle.none;
    case 'PKDateStyleShort':
      return PassTextDateStyle.short;
    case 'PKDateStyleMedium':
      return PassTextDateStyle.medium;
    case 'PKDateStyleLong':
      return PassTextDateStyle.long;
    case 'PKDateStyleFull':
      return PassTextDateStyle.full;
    default:
      return null;
  }
}