confirm static method

Future<bool> confirm({
  1. String? prompt,
  2. List<String>? acceptedAffirmatives,
})

Confirm the user's choice with an affirmative keywork or a negative keyword, mostly (yes/no).

Implementation

static Future<bool> confirm(
        {String? prompt, List<String>? acceptedAffirmatives}) async =>
    await confirmImpl(
        prompt: prompt, acceptedAffirmatives: acceptedAffirmatives);