Here the finally print not showing in the output, What should I have to do ,, If any mistake I am doing so please guide me.
I try to handle the exception and print the finally out put but it does not works.
2
It looks like you are trying to execute wrong file that’s why you are not able to see your desire output . Your code is in finallywork.dart file and you are executing trycatch.dart file .
finallywork.dart
trycatch.dart
You are doing 2 mistakes,
Try running the command
dart finallywork.dart
Click here to cancel reply.
2
Answers
It looks like you are trying to execute wrong file that’s why you are not able to see your desire output . Your code is in
finallywork.dart
file and you are executingtrycatch.dart
file .You are doing 2 mistakes,
finallywork.dart
trycatch.dart
Try running the command