! end of readLineSunc() dart

Viewed 11

Language: Dart

What is the reason for adding the exclamation mark at the end of the readLineSync() method for getting user input?

    var age = int.parse(stdin.readLineSync()!);
0 Answers
Related