layout abstract method
Given the child
image to display, return the layout (ie. position &
transformation) of the child
Use MapCamera.of to retrieve the ambient MapCamera useful for layout.
If more control over the Image itself is required, prefer subclassing one of the existing subclasses and overriding build.
Implementation
@protected
Widget layout(
BuildContext context, {
required Image child,
});