skip to Main Content

enter image description here

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

Answers


  1. 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 .

    Login or Signup to reply.
  2. You are doing 2 mistakes,

    1. You are editing the fine named finallywork.dart
    2. You are running the file named trycatch.dart

    Try running the command

    dart finallywork.dart
    

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search