type property

PassType get type

The PassType of this PkPass.

Implementation

PassType get type {
  if (pass.boardingPass != null) {
    return PassType.boardingPass;
  }
  if (pass.coupon != null) {
    return PassType.coupon;
  }
  if (pass.eventTicket != null) {
    return PassType.eventTicket;
  }
  if (pass.generic != null) {
    return PassType.generic;
  }
  if (pass.storeCard != null) {
    return PassType.storeCard;
  }
  return PassType.unknown;
}