LocationMessage.from constructor

LocationMessage.from({
  1. required double latitude,
  2. required double longitude,
})

To create a new LocationMessage with latitude and longitude.

Implementation

LocationMessage.from({
  required double latitude,
  required double longitude,
}) {
  _locationMap = {
    'latitude': latitude,
    'longitude': longitude,
  };
}