DiscoverModule/lib/contacts_module/provider_class/email_provider.dart

23 lines
638 B
Dart
Raw Normal View History

2024-10-07 12:41:28 +00:00
import 'package:discover_module/contacts_module/service.dart/service.dart';
import 'package:discover_module/contacts_module/storage_hive/email_data/crud_email.dart';
2024-08-30 12:24:54 +00:00
import 'package:flutter/cupertino.dart';
class EmailProvider extends ChangeNotifier {
final apicall = Callapi();
List emaillist = [];
List get emailkollist => emaillist;
emailinfo(text) async {
print("Location_Text");
final email_result = await apicall.getemaildata(text);
emaillist = email_result;
notifyListeners();
}
2024-10-07 12:41:28 +00:00
storeEmail(row) async {
final emailresult = await apicall.getemaildata(row);
await addEmail(emailresult);
}
2024-08-30 12:24:54 +00:00
}