toList method
Returns a List having double
values.
longitude and latitude are the first two values respectively.
altitude is the third value if it exists (otherwise it is 0.0).
Implementation
List<double> toList() => <double>[
longitude,
latitude,
if (altitude != null) altitude!,
];