containsBounds method

bool containsBounds(
  1. LatLngBounds bounds
)

Checks whether bounds is contained inside bounds

Implementation

bool containsBounds(LatLngBounds bounds) {
  final sw2 = bounds._sw!;
  final ne2 = bounds._ne;
  return (sw2.latitude >= _sw!.latitude) &&
      (ne2!.latitude <= _ne!.latitude) &&
      (sw2.longitude >= _sw!.longitude) &&
      (ne2.longitude <= _ne!.longitude);
}