title: Failed assertion: line 19 pos 16: 'latitude != null': is not true. Flutter Error
body: <p>I use flutter and google maps</p>
  <p>Geolocation is taken to show the current position of the user</p>
  <p>The map loads correctly but before loading, it shows this error</p>
  <blockquote>
  <p>'package:google_maps_flutter_platform_interface/src/types/location.dart': Failed assertion: line 19 pos 16: 'latitude != null': is not true.</p>
  </blockquote>
  <p>this is the part of my code of init and getting the current position</p>
  <pre><code>var lat;
    var long;
    
    @override
    void initState()  {
      _child = SpinKitRipple(
        itemBuilder: (BuildContext context, int index) {
          return DecoratedBox(
            decoration: BoxDecoration(
              color: index.isEven ? Colors.grey : Color(0xffffb838),
            ),
          );
        },
      );
      
      getCurrentLocation();
      populateClients();
      setCustomMapPin();
      super.initState();
    }
    
  
    void getCurrentLocation() async {
       LocationPermission permission;
       
  
       permission = await Geolocator.checkPermission();
    if (permission == LocationPermission.deniedForever) {
      lat=6.9271;long=79.8612;
    }
  
    else if (permission == LocationPermission.denied) {
      permission = await Geolocator.requestPermission();
      if (permission != LocationPermission.whileInUse &amp;&amp;
          permission != LocationPermission.always) {
        lat=6.9271;long=79.8612;
      }
    }
      else{
        
        Position res = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.high); //getCurrentPosition();
      
        lat=res.latitude;long=res.longitude;
        
      }
      
        
      
      
      setState(() {
        //position = res;
        //lat=6.9271;long=79.8612;
        _child = mapWidget();
      });
    }
  
   @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          iconTheme: IconThemeData(color: Colors.white),
          title: Text('Map'),
          centerTitle: true,
          backgroundColor: Colors.blue,
        ),
        body: mapWidget(),
      );
    }
  
    Widget mapWidget() {
      return Stack(
        children: &lt;Widget&gt;[
          GoogleMap(
            initialCameraPosition: CameraPosition(
              target: LatLng(lat,long),//(position.latitude, position.longitude),
              zoom: 18,
            ),
  
            ///mapType: MapType.normal,
            onMapCreated: (GoogleMapController controller) async{
              _controller = controller;
              await setMapStyle(controller, context);
            },
  
            markers: Set&lt;Marker&gt;.of(markers.values),
            compassEnabled: true,
            myLocationEnabled: true,
          ),
          SizedBox(
            height: 26,
          ),
        ],
      );
    }
  }
  </code></pre>
  <p>** I would like to display an animation until the map is correctly loaded**</p>