use_in_case 1.4.0 copy "use_in_case: ^1.4.0" to clipboard
use_in_case: ^1.4.0 copied to clipboard

Have you ever tried to follow a clean-architecture approach in your Project? If so, you probably have a lot of UseCases. This package will help you to use them in a more readable way. It's a simple pa [...]

0.1.0 #

Core Classes #

  • Base Class "Interactor" added
  • Base Class "Modifier" added
  • Class "Invocator" added
  • Class "Event" added
  • Class "Timeout Modifier" added
  • Class "Busy-State Modifier" added

Examples

  • Example "simple example" added
  • Example "predefined modifier example" added
  • Example "custom modifier" added

Tests

  • Test "timeout test" added
  • Test "busy-state test" added
  • Test "default configuration test" added
  • Test "on event test" added

1.0.0 #

I'm glad to announce that Versin 2 has reached its initial state that can be published!

Core Classes #

  • Interface Interactor added
  • Interface ResultInteractor added
  • Interface ParameterizedInteractor added
  • Interface ParameterizedResultInteractor added
  • Modifier after added
  • Modifier before added
  • Modifier watchBusyState added
  • Modifier eventually added
  • Modifier intercept added
  • Invocations runUnsafe added
  • Invocations run added
  • Invocations getOrThrow added
  • Invocations getOrNull added
  • Invocations getOrElse added
  • Modifier typedIntercept added
  • Modifier logEvents added
  • Modifier log added
  • Modifier map added
  • Base class ProgressInteractor added
  • Base class ResultProgressInteractor added
  • Base class ParameterizedProgressInteractor added
  • Base class ParameterizedResultProgressInteractor added
  • Modifier recover added
  • Modifier typedRecover added
  • Modifier timeout added

Examples #

  • Example for after added
  • Example for before added
  • Example for busy_state added
  • Example for eventually added
  • Example for interactor added
  • Example for intercept added
  • Example for log added
  • Example for parameterized_interactor added
  • Example for parameterized_result_interactor added
  • Example for parameterized_result_progress_interactor added
  • Example for result_interactor added
  • Example for use_in_case added

Documentation #

  • Documentation for after added
  • Documentation for before added
  • Documentation for busyState added
  • Documentation for eventually added
  • Documentation for intercept added
  • Documentation for log added
  • Documentation for map added
  • Documentation for recover added
  • Documentation for timeout added

Cleanup #

Removed pretty much all dependencies from the pubspec except darz for the unit type. Removed use_in_case2.0 branch from git-workflow filter.

1.1.0 #

Documentation #

  • Code Documentation added in after.dart
  • Code Documentation added in before.dart
  • Code Documentation added in busy_state.dart
  • Code Documentation added in eventually.dart
  • Code Documentation added in interactor.dart
  • Code Documentation added in intercept.dart
  • Code Documentation added in invoke.dart
  • Code Documentation added in log.dart
  • Code Documentation added in map.dart
  • Code Documentation added in progress.dart
  • Code Documentation added in recover.dart
  • Code Documentation added in timeout.dart

Breaking Changes #

errorMessage parameter in timeout modifier has been migrated to be a lazily-invoked callback due to unnecessary evaluation.

1.2.0 #

  • Removed documentation of deprecated method debounceBusyState in README.md
  • Updated example to call getOrThrow instead of execute.
  • Renamed execute interactor to runUnsafe
  • Edited documentation to match the new interactor signature.

1.2.1 #

  • Added map to library export

1.3.0 #

  • Modifier measure added
  • Modifier runAtLeast added
  • Modifier measuredValue added
  • Example measure added
  • Example measureTimedValue added
  • Example runAtLeast added

1.4.0 #

  • Modifier busyStateChange added
  • Deprecation of watchBusyState introduced
  • Modifier emitBusyStateChange added
  • Examples of watchBusyState updated
  • Example emitBusyStateChange added
  • Documentation for emitBusyStateChange added
  • Modifier ensureMinExecutionTime added
  • Modifier ensureMinExecutionTimeOnSuccess added
  • Added onDelay callback to ensureMinExecutionTime
  • Added onDelay callback to ensureMinExecutionTimeOnSuccess
  • Renamed runUnsafe to getOrThrow in ParameterizedResultInteractor
  • Renamed runUnsafe to getOrThrow in ParameterizedResultProgressInteractor
  • Modifier measureTimeOnSuccess added
  • Modifier cast added
3
likes
0
points
148
downloads

Publisher

unverified uploader

Weekly Downloads

Have you ever tried to follow a clean-architecture approach in your Project? If so, you probably have a lot of UseCases. This package will help you to use them in a more readable way. It's a simple package that provides a set of classes and functions to help you configuring your UseCases in a more flexible and readable way. It is designed to be used in combination with Business-Logic-Components (BLoC).

Repository (GitHub)
View/report issues

Topics

#dart #flutter #bloc #utility #clean-architecture

License

unknown (license)

Dependencies

dartz

More

Packages that depend on use_in_case