clean_architecture_core 1.0.0
clean_architecture_core: ^1.0.0 copied to clipboard
A lightweight companion package for clean_architecture_kit, providing core interfaces like Repository and UseCase for building Clean Architecture apps.
1.0.0 #
- Initial stable release of
clean_architecture_core. - BREAKING: The core base classes (
Repository,UseCase,Failure,FutureEither) have been extracted fromclean_architecture_kit(v2.0.0) into this dedicated package.
Features #
- Provides a
Repositoryabstract interface as a base for all repository contracts. - Provides
UseCase,UnaryUseCase, andNullaryUseCaseabstract interfaces for business logic interactors. - Provides a simple
Failureabstract interface to represent failure cases. - Includes a
FutureEither<T>typedef for convenient asynchronous operations that return a result or a failure, designed for use with thefpdartpackage.
Rationale #
This decoupling allows the clean_architecture_kit linter to be a pure static analysis tool. This core package provides an optional, lightweight, and zero-dependency (other than fpdart) foundation that enables the linter to work out-of-the-box.