confirmSync method

bool confirmSync(
  1. String? message, {
  2. bool defaultValue = false,
})

Like confirm, but blocks and returns the answer.

Implementation

bool confirmSync(String? message, {bool defaultValue = false}) =>
    _askSync(
        'confirmSync',
        () => promptConfirmSync('$message',
            defaultValue: defaultValue, options: _options)) ??
    defaultValue;