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).

example/main.dart

import 'dart:math';

import 'package:nic_validator/nic_validator.dart';

void main() {
  print('${Validators.validateNic('903154802v')}');
  print('${Validators.nicValidPattern()}');
}
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