getBoundary method

Boundary getBoundary()

Gets the current visible boundary.

Implementation

Boundary getBoundary() {
  final biggest = Offset(
    constraints.biggest.width,
    constraints.biggest.height,
  );

  final topLeft = toLatLng(Offset.zero);
  final bottomRight = toLatLng(biggest);

  return Boundary(topLeft: topLeft, bottomRight: bottomRight);
}