welcome function

bool welcome()

Implementation

bool welcome() {
  String content = '''
+---------------------------------------------------+
|           Welcome to the Clean Architeture!       |
+---------------------------------------------------+
|           Do you want to continue? [y/n]          |
+---------------------------------------------------+\n''';

  stderr.write(content);

  final answer = stdin.readLineSync();
  final validator =
      answer?.toLowerCase() == 'y' || answer?.toLowerCase() == 'yes';

  return answer != null && validator;
}