Confirm constructor

Confirm({
  1. required String prompt,
  2. bool? defaultValue,
  3. bool waitForNewLine = false,
})

Constructs a Confirm component with the default theme.

Implementation

Confirm({
  required this.prompt,
  this.defaultValue,
  this.waitForNewLine = false,
}) : theme = Theme.defaultTheme;