A Flutter plugin for detects location on Android devices.
Add live_location
as a dependency in your pubspec.yaml file.
/// Method to get the Live Location.
LatLongPosition position = await LiveLocation.getLatLong;
Using Stream.
// When you get the location for the first time, The location will be NULL.
// Stream Broadcast the Location every 15 seconds using LiveLocation.getLatLong;
LiveLocation.start(your_input);
This plugin is open source project and the license is MIT LICENSE.