add m.location support
Needs cross-platform testing. Currently only tested on Android.
This commit is contained in:
parent
979068fc3a
commit
3a8d977f11
1 changed files with 810 additions and 12 deletions
11
lib/models/location_exception.dart
Normal file
11
lib/models/location_exception.dart
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Reference in a new issue