Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
LocationService Class Reference
Collaboration diagram for LocationService:

Private Member Functions

factory LocationService ()
LocationService _internal ()
void updateDeliveryContext ({int? poId, String? poStatus})
void setDriverId (int driverId)
Future< voidstartLocationTracking () async
Future< bool_sendLocationToServer ({ required int driverId, required double latitude, required double longitude, int? poId, String? poStatus, }) async
void stopLocationTracking ()

Private Attributes

final _apiClient = sl<ApiClient>()
StreamSubscription< Position > _positionStream
int _currentPoId
String _currentPoStatus
int _driverId

Static Private Attributes

static final LocationService _instance = LocationService._internal()

Detailed Description

Definition at line 9 of file location_service.dart.

Constructor & Destructor Documentation

◆ LocationService()

factory LocationService::LocationService ( )
inlineprivate

Definition at line 18 of file location_service.dart.

Here is the caller graph for this function:

Member Function Documentation

◆ _internal()

LocationService LocationService::_internal ( )
private
Here is the call graph for this function:

◆ _sendLocationToServer()

Future< bool > LocationService::_sendLocationToServer ( { required int driverId, required double latitude, required double longitude, int? poId, String? poStatus, } )
inlineprivate

Definition at line 115 of file location_service.dart.

Here is the caller graph for this function:

◆ setDriverId()

void LocationService::setDriverId ( int driverId)
inlineprivate

Definition at line 29 of file location_service.dart.

◆ startLocationTracking()

Future< void > LocationService::startLocationTracking ( )
inlineprivate

Definition at line 33 of file location_service.dart.

Here is the call graph for this function:

◆ stopLocationTracking()

void LocationService::stopLocationTracking ( )
inlineprivate

Definition at line 142 of file location_service.dart.

◆ updateDeliveryContext()

void LocationService::updateDeliveryContext ( {int? poId, String? poStatus} )
inlineprivate

Definition at line 24 of file location_service.dart.

Here is the caller graph for this function:

Member Data Documentation

◆ _apiClient

final LocationService::_apiClient = sl<ApiClient>()
private

Definition at line 10 of file location_service.dart.

◆ _currentPoId

int LocationService::_currentPoId
private

Definition at line 14 of file location_service.dart.

◆ _currentPoStatus

String LocationService::_currentPoStatus
private

Definition at line 15 of file location_service.dart.

◆ _driverId

int LocationService::_driverId
private

Definition at line 16 of file location_service.dart.

◆ _instance

final LocationService LocationService::_instance = LocationService._internal()
staticprivate

Definition at line 11 of file location_service.dart.

◆ _positionStream

StreamSubscription<Position> LocationService::_positionStream
private

Definition at line 12 of file location_service.dart.


The documentation for this class was generated from the following file: