DiscoverModule/lib/provider_class/training_provider.dart

17 lines
413 B
Dart

import 'package:discover_module/service.dart/service.dart';
import 'package:flutter/cupertino.dart';
class TrainigProvider extends ChangeNotifier {
final apicall = Callapi();
List tralist = [];
List get traininglist => tralist;
traininginfo(text) async {
print("Location_Text");
final email_result = await apicall.gettrainingdata(text);
tralist = email_result;
notifyListeners();
}
}