getLengthRanges property

List<int> getLengthRanges

Узнать разрешенные количество символов для определенного типа платежной системы

Implementation

List<int> get getLengthRanges {
  switch (this) {
    case CardPaymentSystem.masterCard:
    case CardPaymentSystem.visa:
      return CardSettings.defaultRangers;
    case CardPaymentSystem.mir:
      return CardSettings.mirRanges;
    case CardPaymentSystem.mestro:
      return CardSettings.maestroRangers;
    default:
      return CardSettings.unknownRangers;
  }
}