Skip to content

Commit 2d12cae

Browse files
committed
reformatting
1 parent e9ce02e commit 2d12cae

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

lib/formatters/credit_card_expiration_input_formatter.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ class CreditCardExpirationDateFormatter extends MaskedInputFormatter {
6969
}
7070
}
7171
fv = super.applyMask(result);
72-
/// a little hack to be able to move caret by one
72+
73+
/// a little hack to be able to move caret by one
7374
/// symbol to the right if a leading zero was added automatically
7475
for (var i = 0; i < numAddedLeadingSymbols; i++) {
7576
fv.increaseNumberOfLeadingSymbols();

lib/formatters/credit_card_number_input_formatter.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,10 @@ class _CardSystemDatas {
244244
if (rawData != null) {
245245
return CardSystemData.fromMap(rawData);
246246
}
247-
return getCardSystemDataByNumber(cardNumber, subscringLength: subscringLength - 1);
247+
return getCardSystemDataByNumber(
248+
cardNumber,
249+
subscringLength: subscringLength - 1,
250+
);
248251
}
249252

250253
static int get _maxDigitsInCard {

lib/formatters/masked_input_formatter.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ class MaskedInputFormatter extends TextInputFormatter {
8989
/// when it adds a leading zero to the input
9090
var addOffset = newFormattedValue._numLeadingSymbols;
9191

92-
9392
/// without this condition there might be a range exception
9493
if (oldValue.selection.end <= oldFormattedValue.text.length) {
9594
numSeparatorsInOld = _countSeparators(

0 commit comments

Comments
 (0)