import { LightningElement, track } from 'lwc'; export default class MyComponent extends LightningElement { @track isFlowVisible = false; launchFlow() { this.isFlowVisible = true; this.template.querySelector('lightning-flow').startFlow('ShowingText'); } hideFlow() { this.isFlowVisible = false; } }