MimicOverlayEntry liftToOverlay()

Start the mimicking process and mimic this object in the enclosing Overlay.

The child of this object will no longer be built at this location in the tree. Instead, (1) this widget will build a transparent placeholder with the same dimensions as the widget had when the mimicking process started and (2) the child will be placed in the enclosing overlay.

To end the mimic process, call MimicOverlayEntry.dispose on the returned object.

Source

MimicOverlayEntry liftToOverlay() {
  OverlayState overlay = Overlay.of(context, debugRequiredFor: config);
  return new MimicOverlayEntry._(startMimic(), overlay);
}