viewfinder property
Viewfinder
viewfinder
The viewfinder controls which part of the world is seen through the viewport.
Thus, viewfinder's position
is the world point which is seen at the
center of the viewport. In addition, viewfinder controls the zoom level
(i.e. how much of the world is seen through the viewport), and,
optionally, rotation.
Implementation
Viewfinder get viewfinder => _viewfinder;
Implementation
set viewfinder(Viewfinder newViewfinder) {
_viewfinder.removeFromParent();
_viewfinder = newViewfinder;
add(_viewfinder);
}