PasswordPromptDetector constructor
PasswordPromptDetector({})
Creates a detector. quiet is the silence window the prompt must hold
before the sheet fires (chunked streams routinely end a chunk at a
colon; only a QUIET colon is a waiting prompt). windowSize caps the
rolling tail the patterns match against.
Implementation
PasswordPromptDetector({
required this.onPrompt,
this.quiet = const Duration(milliseconds: 250),
int windowSize = 200,
}) : _windowCap = windowSize;