setPreventInteraction method

void setPreventInteraction([
  1. bool? preventInteraction
])

Sets whether the overlay should capture events and prevent interaction with the underlying application.

Implementation

void setPreventInteraction([bool? preventInteraction]) {
  state.captureEvents = preventInteraction ?? true;
}