setVisible method

void setVisible([
  1. bool? visible
])

Sets whether the overlay should be visible.

Implementation

void setVisible([bool? visible]) {
  state.visibility = Visibility.fromBoolean(visible ?? true);
}