DiscoverModule/lib/contacts_module/provider_class/phoneno_provider.dart

24 lines
659 B
Dart

import 'package:discover_module/contacts_module/service.dart/service.dart';
import 'package:discover_module/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);
}
}