nexus/lib/models/location_exception.dart
Henry-Hiles 3a8d977f11
add m.location support
Needs cross-platform testing. Currently only tested on Android.
2026-11-02 15:02:49 -05:00

11 lines
409 B
Dart

enum LocationException(final String message) implements Exception {
servicesOff("Location services are turned off."),
denied("Nexus doesn't have permission to see your location."),
timedOut("Couldn't get your location in time."),
failed(
"Couldn't get your location. Check that location services are on, and that Nexus is allowed to use them.",
);
@override
String toString() => message;
}