updateContentInsets method
Updates the distance from the edges of the map view’s frame to the edges of the map view’s logical viewport, optionally animating the change.
When the value of this property is equal to EdgeInsets.zero
, viewport
properties such as centerCoordinate assume a viewport that matches the map
view’s frame. Otherwise, those properties are inset, excluding part of the
frame from the viewport. For instance, if the only the top edge is inset,
the map center is effectively shifted downward.
The returned Future completes after the change has been made on the platform side.
Implementation
Future<void> updateContentInsets(EdgeInsets insets,
[bool animated = false]) async {
return _vietmapGLPlatform.updateContentInsets(insets, animated);
}