init method
void
init(})
/ the centre LatLng is getting added more than once
Implementation
void init(
List<String?>? atsignsToTrackFromApp, {
LatLng? etaFrom,
bool? calculateETA,
bool? addCurrentUserMarker,
String? textForCenter,
Function? showToast,
String? notificationID,
DateTime? refreshAt,
}) async {
hybridUsersList = [];
centreMarker = null;
_atHybridUsersController = StreamController<List<HybridModel?>>.broadcast();
atsignsToTrack = atsignsToTrackFromApp;
this.etaFrom = etaFrom;
this.calculateETA = calculateETA;
this.addCurrentUserMarker = addCurrentUserMarker;
this.textForCenter = textForCenter;
this.showToast = showToast;
this.notificationID = notificationID;
this.refreshAt = refreshAt;
// ignore: unawaited_futures
if (myLocationStream != null) myLocationStream!.cancel();
if (etaFrom != null) addCentreMarker();
await addMyDetailsToHybridUsersList();
updateHybridList();
uniqueID = DateTime.now().millisecondsSinceEpoch.toString();
refreshUpdateHybridList(uniqueID);
}