kb0 / dart-gpx

Dart package for load, manipulate, and save GPS data in GPX format (a light-weight XML data format for the interchange of GPS data - waypoints, routes, and tracks).
Apache License 2.0
24 stars 27 forks source link

Add stream support using StreamIterator. #23

Closed sun-jiao closed 1 year ago

sun-jiao commented 1 year ago

I replaced all Iterator with StreamIterator for code reusing. This may be a breaking change because the methods were changed to asynchronous.

I've also considered keeping both sync (Iterator) and async (StreamIterator) versions, but they are very similar, maintaining two versions at the same time may be exhausting or cause unnecessary risks. .