A simple Package to validate saudi arabia’s Numbers using Regex

Features

  • simple

Getting started

install the package and good to do

Usage

KsaNumber ksaNumber = new KsaNumber();

    var n1= "532001088777";
  var n2= "0532001088";
  var n3= "532001088";
var numbers = [n1,n2  ,n3]; 
for (var num in numbers) {
  print(ksaNumber.isValidNumber(num));
}


validateKsaNumber

GitHub

View Github