KonectarApp/lib/contacts_module/provider_class/educationprovider.dart

23 lines
631 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/edu_data/crud_edu.dart';
import 'package:flutter/cupertino.dart';
class EducationProvider extends ChangeNotifier {
final apicall = Callapi();
List edulist = [];
List get educationlist => edulist;
eduinfo(text) async {
print("Location_Text");
final email_result = await apicall.getedulistdata(text);
edulist = email_result;
notifyListeners();
}
storeEdu(row) async {
final emailresult = await apicall.getedulistdata(row);
await addEdu(emailresult);
}
}