tcid_checker 1.0.2 copy "tcid_checker: ^1.0.2" to clipboard
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 [...]

example/example.dart

import 'package:tcid_checker/tcid_checker.dart';

main(List<String> args) {
  print('TC ID is ${checkID("11111111111") == true ? 'valid' : 'not valid'}.');
}
1
likes
130
pub points
0%
popularity

Publisher

verified publisherberk.babadogan.net

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 and 9th digits plus 9 times the sum of the 2nd, 4th, 6th and 8th digits gives the 10th digit. * The ones digit of 8 times the sum of the 1st, 3rd, 5th, 7th and 9th digits gives the 11th digit.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on tcid_checker