toList method

List<double> toList()

Converts the LatLng to a list of doubles [longitude, latitude].

Implementation

List<double> toList() {
  return [longitude, latitude];
}