Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP) @ResoCoder
Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)  @ResoCoder
Uploaded December 2019 | Updated November 2026, 2 hours ago
πŸ“— Learn from the written tutorial πŸ‘‡πŸ‘‡
resocoder.com/proper-error-handling-2

🎯 The biggest Flutter conference in Europe:
https://fluttereurope.dev

πŸ“§ Get Flutter news πŸ“° and resources:
πŸ‘‰ http://flutter.education

πŸ‘¨β€πŸ’» Do you write good code? Find out now!
resocoder.com/good-code-quiz

From the first part, you already know that you shouldn't catch every exception with a blanket catch statement and you also learned how to get error messages over to your state management solution, such as a ChangeNotifer. Some may say "That's it!", but as proper software developers we should prefer hard rules over conventions.

Currently, we won't get any compile-time or even run-time errors when we don't display an error message to the user. Secondly, we treat error flow and "success data" flow separately - one through exceptions, another through return values. Similarly, we store the "success data" and its associated Failure in two distinct fields in the ChangeNotifier... Is there a way to join them?

Go to my website for more information, code examples, and articles:
● resocoder.com

Follow me on social media:
● instagram.com/resocoder
● facebook.com/resocoder
● twitter.com/resocoder
Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)Riverpod 2.0 – Complete Guide (Flutter Tutorial)Android Kotlin: Forecast App 10 - Getting Device Location - MVVM Tutorial CourseFlutter Firebase & DDD Course [14] - Data Transfer ObjectsIntroduction to MVVM on Android - Tutorial - Learn Android Architecture PatternsFlutter Bloc - AUTOMATIC LOOKUP - v0.20 (and Up), Updated TutorialFlutter Modal Bottom Sheet TutorialFlutter TDD Clean Architecture Course [11] – Bloc Implementation 1/2Firebase Firestore Chat App: Show a List of Users (Ep 3) - Kotlin Android TutorialAndroid Kotlin: Forecast App 07 - Current Weather User Interface - MVVM Tutorial CourseFlutter Firebase & DDD Course [30] - Todo TileDependency Injection with Kodein & MVVM Architecture - Android Kotlin Tutorial
Reso Coder |

Functional Error Handling in Flutter & Dart (#2 – Either, Task, FP)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER