confirm function

bool confirm([
  1. String? message
])

Shows the given message and waits for the answer. Returns the user's answer as boolean.

Only y and Y are considered as true.

If the stdin is not interactive, it returns false.

Implementation

_i2.bool confirm([_i2.String? message]) => _i4.callMethod(
      _self,
      'confirm',
      [message ?? _i6.undefined],
    );