saveTracking method
Function to save tracking points to database
Implementation
void saveTracking(BuildContext context) {
if (_tempLocation.length > 0) {
Navigator.pop(context, _tempLocation);
} else {
Navigator.pop(context, null);
}
}