LatLngExtension extension

Provides extension methods for LatLng class. Contains common methods for example copyWith, toMap, fromMap, etc, that are common to all package's submodels.

on

Methods

copyWith({double? latitude, double? longitude}) LatLng
Creates a copy of this object with the given fields replaced with the new values. If the new values are null, the field is left unchanged. Otherwise, the field is replaced with the new value.
toMap() Map<String, double>
Converts this object object to a JSON like map.

Static Methods

fromMap(JsonMap map) LatLng
Creates a new instance of this object from a JSON like map.