build method

MPBounds build()

Build a MPBounds object

Throws FormatException if no MPPoints were added in with include

Implementation

MPBounds build() {
  if (_north == -double.maxFinite) {
    throw const FormatException("Cannot build bounds with no coordinates");
  }
  return MPBounds(
      northeast: MPPoint.withCoordinates(latitude: _north, longitude: _east),
      southwest: MPPoint.withCoordinates(latitude: _south, longitude: _west));
}