orchestrator_bloc 0.5.0 copy "orchestrator_bloc: ^0.5.0" to clipboard
orchestrator_bloc: ^0.5.0 copied to clipboard

Flutter BLoC/Cubit integration for orchestrator_core. Build scalable Flutter apps with Event-Driven Orchestrator pattern.

orchestrator_bloc #

Flutter BLoC/Cubit integration for orchestrator_core. Build scalable Flutter apps with Event-Driven Orchestrator pattern.

Features #

  • OrchestratorCubit: Cubit with job dispatch and event routing
  • OrchestratorBloc: Bloc with job dispatch and event routing
  • Automatic Active/Passive event classification
  • Lifecycle integration with BLoC

Installation #

dependencies:
  orchestrator_bloc: ^0.2.0

Usage #

class CounterCubit extends OrchestratorCubit<CounterState> {
  CounterCubit() : super(const CounterState());

  void increment() {
    emit(state.copyWith(isLoading: true));
    dispatch(IncrementJob());
  }

  @override
  void onActiveSuccess(JobSuccessEvent event) {
    emit(state.copyWith(count: event.data, isLoading: false));
  }
}

Documentation #

See the full documentation.

License #

MIT License

0
likes
160
points
399
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter BLoC/Cubit integration for orchestrator_core. Build scalable Flutter apps with Event-Driven Orchestrator pattern.

Repository (GitHub)
View/report issues
Contributing

Topics

#state-management #bloc #cubit #orchestrator #flutter

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_bloc, orchestrator_core

More

Packages that depend on orchestrator_bloc