useOverlay property

bool useOverlay
final

If it's true will create a new widget to zoom, to occupy the entire screen

The problem of using an overlay is if you want to zoom in a scrollable widget as the widget is rebuilt to occupy the entire screen can lose the scroll or any other state

Implementation

final bool useOverlay;