dart_mediatr 1.0.4 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';