title: Error: The method 'getPositionStream' isn't defined for the class 'Geolocator'
body: <p>Using flutter I try to retrieve the current position using StreamSubscription and getPositionStream in geo locator.
  But I keep getting the error: Error: The method 'getPostionStream' isn't defined for the class 'Geolocator'.</p>
  <p>Here is my function:</p>
  <pre><code>void getLocationUpdates(){
  StreamSubscription&lt;Position&gt; homeTabPostionStream;
  
  homeTabPostionStream = geoLocator.getPositionStream(locationOptions).listen((Position position){
    currentPosition = position;
  });
  </code></pre>
  <p>Here I created the variables:</p>
  <pre><code>var geoLocator = Geolocator();
  var locationOptions = LocationOptions(accuracy: LocationAccuracy.bestForNavigation, distanceFilter: 4);
  </code></pre>
  <p>As you requested I write the entire code for reference.</p>
  <p>Here is the entire code:</p>
  <pre><code>class HomeTab extends StatefulWidget {
    @override
    _HomeTabState createState() =&gt; _HomeTabState();
  }
  
  class _HomeTabState extends State&lt;HomeTab&gt; {
  
    GoogleMapController mapController;
    Completer&lt;GoogleMapController&gt; _controller = Completer();
  
    Position currentPosition;
  
    DatabaseReference tripRequestRef;
  
    var geoLocator = Geolocator();
    var locationOptions = LocationOptions(accuracy: LocationAccuracy.bestForNavigation, distanceFilter: 4);
  
  
    void getCurrentPosition() async{
  
      Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.bestForNavigation);
      currentPosition = position;
      LatLng pos = LatLng(position.latitude, position.longitude);
      mapController.animateCamera(CameraUpdate.newLatLng(pos));
  
    }
  
    @override
    Widget build(BuildContext context) {
      return Stack(
        children: &lt;Widget&gt;[
          GoogleMap(
            padding: EdgeInsets.only(top: 135),
            myLocationEnabled: true,
            myLocationButtonEnabled: true,
            mapType: MapType.normal,
            initialCameraPosition: googlePlex,
            onMapCreated: (GoogleMapController controller){
              _controller.complete(controller);
              mapController = controller;
  
              getCurrentPosition();
            },
          ),
          Container(
            height: 135,
            width: double.infinity,
            color: BrandColors.colorPrimary,
          ),
  
          Positioned(
            top: 60,
            left: 0,
            right: 0,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: &lt;Widget&gt;[
                AvailabilityButton(
                  title: 'GO ONLINE',
                  color: BrandColors.colorOrange,
                  onPressed: (){
  
                    GoOnline();
  
                  },
                ),
              ],
            ),
          ),
  
        ],
      );
    }
  
    void GoOnline(){
      Geofire.initialize('driversAvailable');
      Geofire.setLocation(currentFirebaseUser.uid, currentPosition.latitude, currentPosition.longitude);
  
      tripRequestRef = FirebaseDatabase.instance.reference().child('drivers/${currentFirebaseUser.uid}/newtrip');
      tripRequestRef.set('waiting');
      
      tripRequestRef.onValue.listen((event) {
  
  
  
      });
  
    }
  
    void getLocationUpdates(){
      StreamSubscription&lt;Position&gt; homeTabPostionStream;
  
      homeTabPostionStream = geoLocator.getPositionStream(locationOptions).listen((Position position){
        currentPosition = position;
      });
  </code></pre>