Is your feature request related to a problem? Please describe.
If I want to be sure that the location of a media file is trustworthy, it should be not possible to allow location mocking.
Describe the solution you'd like
Use the isMocked property of Geolocator, to detect if a mocked location might be used and throw an error to abort the process.
Todo this, extend the Interface with a similar named property / function which uses Geolocators under the hood. In PreperationBloc add an additional check, which can throw an: Invalid Location: It seems like you are using a mock location service or something like that.
Checkout if some tests need to be adjusted / extended (I think mostly PreperationBloc_test.dart, but make sure to check)
Describe alternatives you've considered
Just letting it be, but that's not a good idea in the long term.
Is your feature request related to a problem? Please describe. If I want to be sure that the location of a media file is trustworthy, it should be not possible to allow location mocking.
Describe the solution you'd like Use the
isMocked
property of Geolocator, to detect if a mocked location might be used and throw an error to abort the process.Todo this, extend the Interface with a similar named property / function which uses Geolocators under the hood. In
PreperationBloc
add an additional check, which can throw an:Invalid Location: It seems like you are using a mock location service
or something like that.Checkout if some tests need to be adjusted / extended (I think mostly PreperationBloc_test.dart, but make sure to check)
Describe alternatives you've considered Just letting it be, but that's not a good idea in the long term.