
Flutter Exception Handling with try/catch and the Result type
11 min read
How to use sealed classes to create a Result type that makes it explicit when a function can return an error, rather than throwing an exception.
How to use sealed classes to create a Result type that makes it explicit when a function can return an error, rather than throwing an exception.
Fpdart aims to bring all the main types found in functional languages to Dart. Here we focus on the Either type and learn how to use it for robust error handling.