nic_validator 0.1.2 copy "nic_validator: ^0.1.2" to clipboard
nic_validator: ^0.1.2 copied to clipboard

A Flutter package to validate Sri Lankan National Identity Card (NIC) numbers. Supports both the new 12-digit format and the old 10-digit format (ending with V/X).

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add nic_validator

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  nic_validator: ^0.1.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:nic_validator/nic_validator.dart';
1
likes
150
points
76
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to validate Sri Lankan National Identity Card (NIC) numbers. Supports both the new 12-digit format and the old 10-digit format (ending with V/X).

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on nic_validator