Skip to content

Commit ec6369d

Browse files
Merge pull request #159 from darki73/feat-mir-card
feat: ✨ Added support for 'mir' cards
2 parents 1c62271 + 7e3818d commit ec6369d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

icons/mir.png

858 Bytes
Loading

lib/src/utils/asset_paths.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ class AssetPaths {
1010
static const String elo = 'icons/elo.png';
1111
static const String hipercard = 'icons/hipercard.png';
1212
static const String chip = 'icons/chip.png';
13+
static const String mir = 'icons/mir.png';
1314
}

lib/src/utils/constants.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class AppConstants {
124124
<int?>[23, 26]: CardType.mastercard,
125125
<int?>[223, 229]: CardType.mastercard,
126126
<int?>[2221, 2229]: CardType.mastercard,
127+
<int?>[2200, 2204]: CardType.mir,
127128
},
128129
};
129130

@@ -136,5 +137,6 @@ class AppConstants {
136137
CardType.discover: AssetPaths.discover,
137138
CardType.elo: AssetPaths.elo,
138139
CardType.hipercard: AssetPaths.hipercard,
140+
CardType.mir: AssetPaths.mir,
139141
};
140142
}

lib/src/utils/enumerations.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ enum CardType {
88
discover,
99
elo,
1010
hipercard,
11+
mir,
1112
}
1213

1314
/// The type of floating event.

0 commit comments

Comments
 (0)