nic_validator 0.1.1
nic_validator: ^0.1.1 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_validatorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
nic_validator: ^0.1.1Alternatively, 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';