layout abstract method

  1. @protected
Widget layout(
  1. BuildContext context, {
  2. required Image child,
})

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,
});