toList method

  1. @override
List<LatLng> toList()
override

Create a list of all the LatLngs along the outline of this region

Not supported on line regions: use toOutlines() instead.

Returns a List<LatLng> which can be used anywhere.

Implementation

@override
List<LatLng> toList() => [
      LatLng(bounds.southEast.latitude, bounds.northWest.longitude),
      bounds.southEast,
      LatLng(bounds.northWest.latitude, bounds.southEast.longitude),
      bounds.northWest,
    ];