dart_mediatr 1.0.4 copy "dart_mediatr: ^1.0.4" to clipboard
dart_mediatr: ^1.0.4 copied to clipboard

The Dart Mediator package provides an implementation of the Mediator pattern for Dart inspired by MediatR ASP.net Core, including dynamic handler registration via code generation. This pattern is usef [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add dart_mediatr

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  dart_mediatr: ^1.0.4

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dart_mediatr/dart_mediatr.dart';
3
likes
120
pub points
51%
popularity

Publisher

unverified uploader

The Dart Mediator package provides an implementation of the Mediator pattern for Dart inspired by MediatR ASP.net Core, including dynamic handler registration via code generation. This pattern is useful for organizing your application's commands and queries by centralizing their processing through a mediator.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

analyzer, build, flutter, glob, source_gen

More

Packages that depend on dart_mediatr