StepScreenshotOptions.waitForTextMatched constructor

StepScreenshotOptions.waitForTextMatched()

Mid-wait text match: paint the highlight target, no long settle.

Implementation

factory StepScreenshotOptions.waitForTextMatched() =>
    const StepScreenshotOptions(
      // The condition waiter has already pumped the frame that satisfied
      // the text predicate. Advancing here can capture a later state.
      pumpBeforeCapture: false,
      // A successful text wait already matched an on-screen text target.
      // Do not run ensureVisible's zero-duration pump at this boundary.
      ensureTargetVisible: false,
      waitForTarget: false,
      waitForLottie: false,
      stabilize: false,
      allowObserveWhileQueueBusy: true,
    );