I am new to Dart and was wondering if I am able to change the output of stdin.readLineSync() in the terminal. Here is an example of what I want:
import "dart:io";
void main()
{
print("Insert your name: ");
String str = stdin.readLineSync()!;
print("Your name is $str");
}
Output
Insert your name:
Max
Your name is Max
Desired output:
Insert your name: Max
Your name is Max