toBounds function

CoordinateBounds toBounds(
  1. String bboxString
)

Implementation

CoordinateBounds toBounds(String bboxString) {
  List<String> strings = bboxString.split(",");
  return CoordinateBounds(
    southwest: createPoint(double.parse(strings[0]), double.parse(strings[1])),
    northeast: createPoint(double.parse(strings[2]), double.parse(strings[3])),
    infiniteBounds: false
  );
}