askBinary method

bool askBinary (
  1. String prompt
)

Implementation

bool askBinary(String prompt) {
  final input = _ask('$prompt (y/n) ', null);

  return input.contains('y');
}