tcid_checker 1.0.2
tcid_checker: ^1.0.2 copied to clipboard
Determines that given TC Id is valid or not based on rules --> * The ones digit of the sum of the first 10 digits gives the 11th digit. * The ones digit of 7 times the sum of the 1st, 3rd, 5th, 7th an [...]
import 'package:tcid_checker/tcid_checker.dart';
main(List<String> args) {
print('TC ID is ${checkID("11111111111") == true ? 'valid' : 'not valid'}.');
}