diff --git a/lib/src/utils/phone_number/phone_number_util.dart b/lib/src/utils/phone_number/phone_number_util.dart index cd83e02cc4..ffabe47067 100644 --- a/lib/src/utils/phone_number/phone_number_util.dart +++ b/lib/src/utils/phone_number/phone_number_util.dart @@ -3,13 +3,6 @@ import 'package:libphonenumber_plugin/libphonenumber_plugin.dart' as p; /// A wrapper class [PhoneNumberUtil] that basically switch between plugin available for `Web` or `Android or IOS` and `Other platforms` when available. class PhoneNumberUtil { - /// Accepts [phoneNumber] and [isoCode] - /// Returns [Future] - static Future getNameForNumber( - {required String phoneNumber, required String isoCode}) async { - return p.PhoneNumberUtil.getNameForNumber(phoneNumber, isoCode); - } - /// [isValidNumber] checks if a [phoneNumber] is valid. /// Accepts [phoneNumber] and [isoCode] /// Returns [Future]. diff --git a/pubspec.yaml b/pubspec.yaml index e62ac23df5..33eb497e2f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter - libphonenumber_plugin: ^0.2.5 + libphonenumber_plugin: ^0.3.1 equatable: ^2.0.5 collection: ^1.16.0