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

A Flutter package enabling message delegation between BLoCs using the Mediator pattern, improving modularity, maintainability, and testability.

Use this package as a library

Depend on it

Run this command:

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 flutter pub get):

dependencies:
  flutter_bloc_mediator: ^1.1.2

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: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/bloc_hub/provider.dart';
import 'package:flutter_bloc_mediator/communication_types/base_communication.dart';
6
likes
160
points
60
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package enabling message delegation between BLoCs using the Mediator pattern, improving modularity, maintainability, and testability.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_bloc_mediator