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

A package that provides easy-to-use Dart utilities for validating and generating South African ID numbers, ensuring accuracy and compliance with the ID number format. Whether you need to verify existi [...]

rsa_id_number #

A Dart package for validating and generating South African ID numbers.

Features #

  • Validation: Validate South African ID numbers based on the specified format.
  • Generation: Generate random South African ID numbers.

Installation #

Add the following line to your pubspec.yaml file:

dependencies:
  rsa_id_number: ^1.0.0

Then run:

$ pub get

or

$ flutter pub get

Usage #

Validation #

import 'package:rsa_id_number/rsa_id_validator.dart';

void main() {
  String idToValidate = '9202204720082';
  bool isValid = RsaIdValidator.isValid(idToValidate);
  print('Is valid ID: $isValid');
}

Generation #

import 'package:rsa_id_number/rsa_id_generator.dart';

void main() {
  String randomId = RsaIdGenerator.generate();
  print('Generated ID: $randomId');
}

Contributing #

Feel free to contribute to this project by submitting issues and pull requests.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

8
likes
0
points
210
downloads

Publisher

verified publishermakhosandile.me

Weekly Downloads

A package that provides easy-to-use Dart utilities for validating and generating South African ID numbers, ensuring accuracy and compliance with the ID number format. Whether you need to verify existing IDs or create random ones, this package simplifies the process.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl, luhn_algorithm, meta

More

Packages that depend on rsa_id_number