KonectarApp/lib/contacts_module/provider_class/phoneno_provider.dart

24 lines
659 B
Dart
Raw Normal View History

2024-10-08 12:01:59 +00:00
import 'package:konectar_events/contacts_module/service.dart/service.dart';
import 'package:konectar_events/contacts_module/storage_hive/pno_data/crud_pno.dart';
import 'package:flutter/cupertino.dart';
class PhonenoProvider extends ChangeNotifier {
final apicall = Callapi();
List phonelist = [];
List get phonenolist => phonelist;
phoneinfo(text) async {
print("Location_Text");
final phone_result = await apicall.getphonedata(text);
phonelist = phone_result;
notifyListeners();
}
storePno(row) async {
print("Location_Text");
final phoneresult = await apicall.getphonedata(row);
await addPno(phoneresult);
}
}