clearSimLocation function
Stops location simulation on the iOS simulator.
Never throws; all error conditions are represented as sealed result cases.
Implementation
Future<SimLocationResult> clearSimLocation(SimLocationClearInput _) async {
final device = await resolveSimulatorDevice();
final error = await runSimctl(['location', device, 'clear']);
if (error != null) {
return SimLocationFailed(error);
}
return const SimLocationCleared();
}