isInteractive property

bool get isInteractive

Whether the terminal can answer questions at all.

A wizard invoked from CI has no one to ask; callers check this and fail with an actionable message rather than blocking on a read that never returns.

Implementation

static bool get isInteractive => stdin.hasTerminal;