19 lines
649 B
Dart
19 lines
649 B
Dart
// import 'package:get/get.dart';
|
|
// import 'package:flutter/material.dart';
|
|
// import 'package:async/async.dart';
|
|
// import 'package:regroup/Main_Screens/Community_HomePage/PostDetailScreen/ViewModel/CommentsRepository.dart';
|
|
// class ApiRepository extends GetxController {
|
|
// Future<List<dynamic>> fetchMultipleAPIs() async {
|
|
// FutureGroup futureGroup = FutureGroup();
|
|
// // PostDetail
|
|
// futureGroup.add(CommentsRepository().getAllComments());
|
|
|
|
|
|
// // Close the group (no more futures can be added)
|
|
// futureGroup.close();
|
|
|
|
// // Wait for all futures to complete
|
|
// return await futureGroup.future;
|
|
// }
|
|
// }
|