flutter_bloc_mediator 1.0.0 copy "flutter_bloc_mediator: ^1.0.0" to clipboard
flutter_bloc_mediator: ^1.0.0 copied to clipboard

A Flutter package that enables message delegation between BLoCs using the Mediator pattern. flutter_bloc_mediator allows BLoCs to communicate without direct references, improving modularity, maintaina [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add flutter_bloc_mediator

With Flutter:

 $ flutter pub add flutter_bloc_mediator

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

dependencies:
  flutter_bloc_mediator: ^1.0.0

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

Import it

Now in your Dart code, you can use:

import 'package:flutter_bloc_mediator/bloc_hub/bloc_member.dart';
import 'package:flutter_bloc_mediator/bloc_hub/concrete_hub.dart';
import 'package:flutter_bloc_mediator/bloc_hub/hub.dart';
import 'package:flutter_bloc_mediator/bloc_hub/member.dart';
import 'package:flutter_bloc_mediator/communication_types/base_communication.dart';
6
likes
0
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that enables message delegation between BLoCs using the Mediator pattern. flutter_bloc_mediator allows BLoCs to communicate without direct references, improving modularity, maintainability, and testability.

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_bloc_mediator