getAge method

Duration getAge()

//////////// //////////// Gets the age of the location data

Implementation

// II.E - Helper Methods
///////////////
/// Gets the age of the location data
Duration getAge() {
  final now = DateTime.now();
  final locationTime = timestamp.toDate();
  return now.difference(locationTime);
}