17 lines
377 B
Dart
17 lines
377 B
Dart
import 'package:discover_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();
|
|
}
|
|
}
|