mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 21:44:26 +02:00
14 lines
440 B
Dart
14 lines
440 B
Dart
import 'package:revanced_manager/app/app.locator.dart';
|
|
import 'package:revanced_manager/services/manager_api.dart';
|
|
import 'package:stacked/stacked.dart';
|
|
|
|
class ContributorsViewModel extends BaseViewModel {
|
|
final ManagerAPI _managerAPI = locator<ManagerAPI>();
|
|
Map<String, List<dynamic>> contributors = {};
|
|
|
|
Future<void> getContributors() async {
|
|
contributors = await _managerAPI.getContributors();
|
|
notifyListeners();
|
|
}
|
|
}
|