getCurrentLocationUpdates static method

Future<Stream<Position>?> getCurrentLocationUpdates(
  1. LocationSettings locationSettings
)

Implementation

static Future<Stream<Position>?> getCurrentLocationUpdates(LocationSettings locationSettings) async {
  try {
    await canFetchLocation();
    return Geolocator.getPositionStream(locationSettings: locationSettings);
  } catch (_) {
    return null;
  }
}