![Andrea Bizzotto 💙 on Twitter: "So how can we make it explicit that the function can return an error? What we need is a Result type that can represent *either* a success Andrea Bizzotto 💙 on Twitter: "So how can we make it explicit that the function can return an error? What we need is a Result type that can represent *either* a success](https://pbs.twimg.com/media/FYsC8zfWYAE7mxl.png)
Andrea Bizzotto 💙 on Twitter: "So how can we make it explicit that the function can return an error? What we need is a Result type that can represent *either* a success
![Dart Errors and Exceptions - Exceptions (try-catch-finally blocks) and create own Exception class - YouTube Dart Errors and Exceptions - Exceptions (try-catch-finally blocks) and create own Exception class - YouTube](https://i.ytimg.com/vi/N5HgO7dLgc8/maxresdefault.jpg)
Dart Errors and Exceptions - Exceptions (try-catch-finally blocks) and create own Exception class - YouTube
![Break on "unhandled" exceptions when a debugger is attached · Issue #17007 · flutter/flutter · GitHub Break on "unhandled" exceptions when a debugger is attached · Issue #17007 · flutter/flutter · GitHub](https://user-images.githubusercontent.com/1078012/72271872-9d599000-361f-11ea-9d86-75d056eed2c8.png)
Break on "unhandled" exceptions when a debugger is attached · Issue #17007 · flutter/flutter · GitHub
![Vandad Nahavandipoor on Twitter: "In #Flutter you can throw anything, like cats do 😅! That means you can have an #enum that describes your #exceptions like enum Exceptions { invalidUserName, invalidPassword } Vandad Nahavandipoor on Twitter: "In #Flutter you can throw anything, like cats do 😅! That means you can have an #enum that describes your #exceptions like enum Exceptions { invalidUserName, invalidPassword }](https://pbs.twimg.com/media/FGi9fPiXsAQZGyQ.jpg:large)
Vandad Nahavandipoor on Twitter: "In #Flutter you can throw anything, like cats do 😅! That means you can have an #enum that describes your #exceptions like enum Exceptions { invalidUserName, invalidPassword }
Exception thrown at runtime is not shown by flutter run output or by IDE, unless you're step-by-step debugging · Issue #19604 · flutter/flutter · GitHub
![Using `IndexedStack` inside Scaffold and then trying to tap on `BottomNavigationTab` bar throws `package:flutter/src/rendering/stack.dart': Failed assertion: line 717 pos 12: 'child != null': is not true`. exception. · Issue #96797 · flutter/flutter · Using `IndexedStack` inside Scaffold and then trying to tap on `BottomNavigationTab` bar throws `package:flutter/src/rendering/stack.dart': Failed assertion: line 717 pos 12: 'child != null': is not true`. exception. · Issue #96797 · flutter/flutter ·](https://user-images.githubusercontent.com/64647294/150002268-ae6d8ec3-977c-42e3-8d28-db6c0d132a3b.png)