moveToEventScreen method

void moveToEventScreen(
  1. EventNotificationModel _eventNotificationModel
)

Implementation

void moveToEventScreen(EventNotificationModel _eventNotificationModel) async {
  markers = [];
  exitedAtSigns = [];
  _initChat(_eventNotificationModel);
  _calculateExitedAtsigns(_eventNotificationModel);
  eventNotifier = ValueNotifier(_eventNotificationModel);
  markers.add(addVenueMarker(_eventNotificationModel));

  // ignore: unawaited_futures
  Navigator.push(
    AtEventNotificationListener().navKey!.currentContext!,
    MaterialPageRoute(
      builder: (context) => _EventsMapScreen(),
    ),
  );

  // markers =
  var _hybridModelList =
      await _calculateHybridModelList(_eventNotificationModel);
  _hybridModelList.forEach((element) {
    markers.add(element);
  });
  // ignore: invalid_use_of_visible_for_testing_member
  // ignore: invalid_use_of_protected_member
  eventNotifier!.notifyListeners();
}