MPCameraUpdate.fromBounds constructor
MPCameraUpdate.fromBounds({})
Construct the update from a bounding box with some padding.
Implementation
MPCameraUpdate.fromBounds({required MPBounds bounds, required int padding, int? width, int? height}) {
_map = {"mode":"fromBounds", "bounds":bounds.toJson(), "padding":padding, "width":width, "height":height};
_map.removeWhere((key, value) => value == null);
}