toMap method Null safety

Map<String, double> toMap()

Convert the LatLng obejct to Map.

Implementation

Map<String,double> toMap()=>{'lat':lat,'lng':lng};