isRecent method

bool isRecent({
  1. Duration threshold = const Duration(minutes: 2),
})

Checks if the location data is recent (within a specified threshold)

Implementation

bool isRecent({Duration threshold = const Duration(minutes: 2)}) {
  return getAge() <= threshold;
}