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

Riverpod integration for orchestrator_core. Build scalable Flutter apps with Event-Driven Orchestrator pattern and compile-time safety.

orchestrator_riverpod #

Riverpod integration for orchestrator_core. Build scalable Flutter apps with Event-Driven Orchestrator pattern and compile-time safety.

Features #

  • OrchestratorNotifier: Riverpod Notifier with job dispatch and event routing
  • Automatic Active/Passive event classification
  • Compile-time safety with Riverpod

Installation #

dependencies:
  orchestrator_riverpod: ^0.2.0

Usage #

class CounterNotifier extends OrchestratorNotifier<CounterState> {
  @override
  CounterState buildState() => const CounterState();

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

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

final counterProvider = NotifierProvider<CounterNotifier, CounterState>(
  CounterNotifier.new,
);

Documentation #

See the full documentation.

License #

MIT License

0
likes
160
points
394
downloads

Publisher

unverified uploader

Weekly Downloads

Riverpod integration for orchestrator_core. Build scalable Flutter apps with Event-Driven Orchestrator pattern and compile-time safety.

Repository (GitHub)
View/report issues
Contributing

Topics

#state-management #riverpod #notifier #orchestrator #flutter

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_riverpod, orchestrator_core

More

Packages that depend on orchestrator_riverpod