patchbay 0.5.0
patchbay: ^0.5.0 copied to clipboard
Typed control channel into a running Dart or Flutter app: protocol, gated command admission, fact-sourced state, jobs and blobs.
example/patchbay_example.dart
import 'package:patchbay/patchbay.dart';
Future<void> main() async {
final registry = PatchbayCommandRegistry(
const <PatchbayCommandRegistration<Object?>>[],
);
final result = await registry.dispatch(
'example.command',
const <String, Object?>{},
'example-request-1',
);
print(result);
}