defaultGeolocationFallbackBuilder function
Gets the country's location from the current Locale.
Implementation
Position defaultGeolocationFallbackBuilder(BuildContext context) {
final locale = Localizations.localeOf(context);
final countryLocation = findLocation(
countryCode: locale.countryCode ?? 'us',
)!;
return Position(
accuracy: 0.01,
altitude: 13.0,
heading: 0.0,
latitude: countryLocation.latitude,
longitude: countryLocation.longitude,
speed: 0.0,
speedAccuracy: 0.0,
timestamp: DateTime.fromMicrosecondsSinceEpoch(0),
floor: 0,
isMocked: true,
);
}