build method

  1. @override
String build()

Implementation

@override
String build () {
  stdout.writeln('${theme.inputPrefix} $sentence');

  final lines = stdin.readLineSync();
  if (lines == null) {
    throw Exception(error);
  }

  updateLastLine('${theme.successPrefix} $sentence : ${lines.grey()}');

  return lines;
}