Skip to content

Instantly share code, notes, and snippets.

@oligazar
Last active May 13, 2019 17:37
Show Gist options
  • Select an option

  • Save oligazar/1cf08c2824efbe06a29092489bed6974 to your computer and use it in GitHub Desktop.

Select an option

Save oligazar/1cf08c2824efbe06a29092489bed6974 to your computer and use it in GitHub Desktop.
blocLocation = BlocLocation();
blocLocation.locations
.debounce(Duration(milliseconds: 500))
.where((locationData) => true)
.transform(combineLatest(filter, (a, b) => LFData(a, b)))
.asyncMap((data) => _getPins(
categoryId: data.filter.categoryIds[0],
lat: data.location.latitude,
lon: data.location.longitude,
radius: data.filter.radius,
rating: data.filter.rating,
))
.listen((pins) => _screenMap.add(pins));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment