flutter-error-handling-either
OfficialStandardized functional error handling for Flutter.
Authorwildbitca
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Standardize functional error handling in Flutter repositories by returning typed failures instead of uncaught exceptions, enabling safer UI and cleaner state management.
Core Features & Use Cases
- Define domain-specific failures using @freezed unions (e.g., UnauthorizedFailure, ApiFailure) and map infrastructure errors to Left(Failure).
- Enforce using Either<Failure, T> across Repository -> Data Source boundaries and consume results with fold in BLoC or similar.
- Use consistent failure messages and strict layer separation to avoid UI leaks and improve testability.
Quick Start
Use a repository method that returns Either<Failure, T> and handle outcomes with fold in the UI layer.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: flutter-error-handling-either Download link: https://github.com/wildbitca/ai-resources/archive/main.zip#flutter-error-handling-either Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.