i_tdd 0.0.3 copy "i_tdd: ^0.0.3" to clipboard
i_tdd: ^0.0.3 copied to clipboard

A utility-first Dart package for Clean Architecture and TDD in Flutter. Provides abstract use cases, parameter classes, error-handling extensions, and bloc-ready states.

Changelog #

All notable changes to this project will be documented in this file.

0.0.3 #

Aug 22, 2025 #

✨ Updated #

  • Updated Dart sdk to 3.9.0
  • Removed flutter_lints Dependency
  • Updated app_toast to 0.0.5
  • Updated exception_type to 0.0.4

0.0.2 #

Jul 25, 2025 #

🗑️ Removed

  • FormSubmissionState
  • BaseBloc
  • LoadingCubit

♻️ Changed

  • Replaced ReportEitherExtensions with a new version ResultEitherExtensions on Either<L, R> to better conform to functional and reactive programming practices.

    • Added a return type Future<R?> to make the method more versatile and chainable.
    • Used nullability to clearly express the absence of a result.
    • Improved error and stack trace logging.
    • Provided consistent handling for empty list checks (successReport is List && successReport.isEmpty).

Notes #

  • The new ResultEitherExtensions.handleReport allows for better integration in async workflows and makes handling success/failure/empty-list states easier and safer.
  • Deprecated the old ReportEitherExtensions usage in favor of this newer and cleaner implementation.

0.0.1 #

Added #

  • Abstract use case interfaces:

    • IEitherUseCase, IEitherNonFutureUseCase, IEitherStreamUseCase
    • IOptionUseCase, IOptionStreamUseCase, IFutureOptionStreamUseCase
    • IStreamUseCase, IFutureUseCase, IUseCase
  • Parameter models: NoParams, ListQuery

  • State management classes:

    • BaseState, Initial, DataLoading, DataLoaded, ErrorState, etc.
    • FormSubmissionState, InitialFormState, FormSubmitting, etc.
  • Cubit utility: LoadingCubit

  • Typedefs: SuccessCallback, FailureCallback, StreamCallback

  • Extensions for error handling and reporting:

    • ErrorHandlingExtension on Object
    • ReportEitherExtensions on Either
    • StreamDataHandlingExtension on Option<Stream>
    • FutureStreamDataLoadingExtension and StreamDataLoadingExtension for loading patterns

Notes #

  • Designed to support Clean Architecture and Test-Driven Development in Flutter apps.
  • Works well with packages like dartz, equatable, and flutter_bloc.
0
likes
140
points
184
downloads

Publisher

unverified uploader

Weekly Downloads

A utility-first Dart package for Clean Architecture and TDD in Flutter. Provides abstract use cases, parameter classes, error-handling extensions, and bloc-ready states.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

app_toast, bloc, dartz, equatable, exception_type, flutter

More

Packages that depend on i_tdd