import 'package:stacked/stacked.dart';
import 'package:stacked_services/stacked_services.dart';

import '../../services/http_services.dart';
import '../../services/my_easyloading.dart';
import '../../services/my_notification.dart';
import '../../services/my_preferences.dart';
import '../../services/my_socket_io_client.dart';
import '../../services/other_function.dart';
import '../app.locator.dart';

class CustomBaseViewModel extends BaseViewModel {
  final dialogService = locator<DialogService>();
  final navigationService = locator<NavigationService>();
  final bottomSheetService = locator<BottomSheetService>();
  final snackbarService = locator<SnackbarService>();
  final otherFunction = locator<OtherFunction>();
  final socketIoClient = locator<MySocketIoClient>();
  final httpService = locator<MyHttpServices>();
  final easyLoading = locator<MyEasyLoading>();
  final myNotification = locator<MyNotification>();
  final mySharedPrefs = locator<MySharedPrefs>();

  void back() {
    navigationService.back();
  }
}
