imei_validator 0.1.3 copy "imei_validator: ^0.1.3" to clipboard
imei_validator: ^0.1.3 copied to clipboard

A library for checking cell phone IMEIs with the Luhn algorithm.

example/example.dart

import 'package:imei_validator/imei_validator.dart';

main(List<String> arguments) {
  String Imei = "378282246310005";

  var validator = new ImeiValidator(Imei);
  print(validator);
  int meid = 37828224631300;

  var validator2 = new ImeiValidator.Integer(meid);
  print(validator2.Imei);
  print(validator2.isValid);
  print(validator2.checkDigit);
  print(validator2.toJson());
}
0
likes
30
pub points
44%
popularity

Publisher

unverified uploader

A library for checking cell phone IMEIs with the Luhn algorithm.

Repository (GitHub)
View/report issues

License

BSD-2-Clause-Views (LICENSE)

More

Packages that depend on imei_validator