import 'package:discover_module/contacts_module/service.dart/service.dart'; import 'package:flutter/cupertino.dart'; class MediacalInsightProvider extends ChangeNotifier { final callapi = Callapi(); List med = []; List get trialsinfo => med; medicalinsightdata() async { final jsonres = await callapi.getallMedicalInsightdata(); med = jsonres; notifyListeners(); } }