Codenic Clean Architecture
  • Introduction
  • The Clean Architecture
    • Presentation Layer
    • Domain Layer
    • Infrastructure Layer
  • Tutorial
    • Overview
    • Creating a Flutter Modular Project
      • Tips for Managing a Modular Project
    • Implementing the Domain Layer
      • Core Dependencies
      • Creating an Entity
      • Creating a Failure
      • Creating a Repository Interface
      • Creating Use Cases
        • CRUD Operations (Runner)
        • Data Streams (Watcher)
    • Implementing the Infrastructure Layer
      • External Dependencies
      • Creating a Data Model
      • Creating a Data Source
      • Implementing a Repository
    • Implementing the Presentation Layer
      • External Dependencies
      • Dependency Injection and Service Locator
      • Widgets
        • Snackbar Handler
        • Global Blocs Widget
        • Note Widgets
  • Packages
    • Codenic Bloc Use Case
      • Runner
      • Watcher
    • Codenic Logger
      • Usage
      • Example
      • Modifying the Logger
      • Integrating Firebase Crashlytics to the logger
    • Codenic Exception Converter
      • Failure Object
      • Exception Converter
      • Exception Converter Suite
      • Example
Powered by GitBook
On this page
  • What does it do?
  • Installation
  • 1. Add the dependency
  • 2. Build your app
  • Next steps
  1. Packages

Codenic Bloc Use Case

PreviousNote WidgetsNextRunner

Last updated 2 years ago

What does it do?

The provides a suite of abstract use case templates (powered by ) that you can extend to define and create your application's use cases as part of your clean architecture.

Use Case Templates
Description

A use case for executing a specific task ideal for create, read, update and delete (CRUD) operations.

A use case for streaming data.

Installation

1. Add the dependency

Add the Dart package in your pubspec.yaml by running the following command in the root of your project:

dart pub add codenic_bloc_use_case

2. Build your app

Install the package by calling:

dart pub get

Next steps

This uses Either monad for managing union types.

Once installed, you can start creating your use cases by following the and documentation.

fpdart's
Runner
Watcher
Runner Cubit
Watcher Cubit
Codenic Bloc Use Case package
BloC cubits