setPreventInteraction method
Sets whether the overlay should capture events and prevent interaction with the underlying application.
Implementation
void setPreventInteraction([bool? preventInteraction]) {
state.captureEvents = preventInteraction ?? true;
}