LocationService class
Constructors
- LocationService()
-
factory
Properties
- addCurrentUserMarker ↔ bool?
-
getter/setter pair
- atClientInstance ↔ AtClientImpl?
-
getter/setter pair
-
atHybridUsersSink
→ StreamSink<
List< HybridModel?> > -
no setter
-
atHybridUsersStream
→ Stream<
List< HybridModel?> > -
no setter
-
atsignsToTrack
↔ List<
String?> ? -
getter/setter pair
- calculateETA ↔ bool?
-
getter/setter pair
- centreMarker ↔ HybridModel?
-
getter/setter pair
- etaFrom ↔ LatLng?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hybridUsersList
↔ List<
HybridModel?> -
getter/setter pair
- isMapInitialized ↔ bool?
-
getter/setter pair
- myData ↔ HybridModel?
-
getter/setter pair
-
myLocationStream
↔ StreamSubscription<
Position> ? -
getter/setter pair
- notificationID ↔ String?
-
getter/setter pair
- refreshAt ↔ DateTime?
-
getter/setter pair
- refreshTimer ↔ Future?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showToast ↔ Function?
-
getter/setter pair
- textForCenter ↔ String?
-
getter/setter pair
- uniqueID ↔ String?
-
getter/setter pair
Methods
-
addCentreMarker(
) → void - Adds a centre marker to the hybridUsersList
-
addDetails(
HybridModel user, {int? index}) → Future< void> - returns new marker and eta
-
addMyDetailsToHybridUsersList(
) → Future - Adds the current user's details to the hybridUsersList
-
dispose(
) → void -
init(
List< String?> ? atsignsToTrackFromApp, {LatLng? etaFrom, bool? calculateETA, bool? addCurrentUserMarker, String? textForCenter, Function? showToast, String? notificationID, DateTime? refreshAt}) → void - / the centre LatLng is getting added more than once
-
mapInitialized(
) → void -
newList(
String _updatedAtsign) → void - called when any new/updated data is received in the main app
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
refreshUpdateHybridList(
String? _uniqueID) → dynamic - will call updateHybridList after refreshAt time
-
removeUser(
String? atsign) → void - called when a user stops sharing his location
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDetails(
HybridModel user) → Future< void> - called to get the new details marker & eta
-
updateHybridList(
) → void - called for the first time pckage is entered from main app
-
updateMyLatLng(
HybridModel _myData) → void - Updates the current user's latitude and longitude
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited