flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

Public constructor for Position

Open nkalscheuer opened this issue 7 years ago • 1 comments

🚀 Feature Requests

Add a public constructor to the Position model class.

Not having a public constructor for the position model makes it very difficult to make a fake position stream for unit/widget testing.

It doesn't have to be misleading, maybe just make the constructor call like Position.fake(this.latitude,...).

  • [ X] :iphone: iOS
  • [ X] :robot: Android

nkalscheuer avatar Feb 17 '19 21:02 nkalscheuer

@nkalscheuer this will be supported in the next release, we already merged PR #193 from a contributor. This version will be released in the coming days.

mvanbeusekom avatar Feb 18 '19 07:02 mvanbeusekom