requestCurrentInstanceToggleSearchOverlay method
void
requestCurrentInstanceToggleSearchOverlay()
Essentially, this causes the search-and-replace overlay to be toggled.
- The instanceId of the active instance will be fetched.
- The instance will be notified of the request.
Implementation
void requestCurrentInstanceToggleSearchOverlay() {
if (api.workspace.workspaceConfigs.activeInstance != null) {
AffogatoEvents.editorInstanceRequestToggleSearchOverlayEventsController
.add(EditorInstanceRequestToggleSearchOverlayEvent(
api.workspace.workspaceConfigs.activeInstance!));
}
}