nettyfinder 1.0.0 copy "nettyfinder: ^1.0.0" to clipboard
nettyfinder: ^1.0.0 copied to clipboard

A flutter package that detect the type of network a phone number belongs to. Credits to Bolaji Ayodeji the original author in javaScript.

This was originally built by Bolaji Ayodeji so all rights goes to him, I only interpreted the javascript code to Dart

Getting started #

Add the dependency to your pubspec.yaml

dependencies:
    nettyfinder: <latest-version>

Usage #

// Import the package
import 'package:nettyfinder/nettyfinder.dart';  
void main() {

    // This is a callable class
    // Just instantiate the class with the number
  var netFinder = NetworkTypeDetect("+2347012345678");

  // Return null if number is valid but not recognized else throw a descriptive exception
  print('Network Type: ${netFinder() ?? 'Not a recognized number'}');
}

Contribution #

For now, I dont accept contributions except its from the javascript netty_finder, so I suggest you contribute there. Any changes from there will be added to the Dart version

0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A flutter package that detect the type of network a phone number belongs to. Credits to Bolaji Ayodeji the original author in javaScript.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on nettyfinder