Last updated:
0 purchases
nettyfinder
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>
copied to clipboard
Usage #
// Import the package
import 'package:nettyfinder/nettyfinder.dart';
copied to clipboard
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'}');
}
copied to clipboard
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.