viewportF property
The current viewport in parent screen ratio.
Returns
- The current viewport
Implementation
Rectangle<double> get viewportF {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'getViewportF',
);
final Rectangle<double> rect = Rectangle<double>(
resultString['result']['x'] ?? 0,
resultString['result']['y'] ?? 0,
resultString['result']['width'] ?? 0,
resultString['result']['height'] ?? 0);
return rect;
}