Error Handling: Dealing with the Unexpected

Challenge Instructions

Expected Output

Code Editor

dart
Hello! I'm here to assist you with the code. What seems to be the problem?
Why is my code throwing a type error on line 5?