fluxon_method_generator 0.0.5 copy "fluxon_method_generator: ^0.0.5" to clipboard
fluxon_method_generator: ^0.0.5 copied to clipboard

Code generator for fluxon service contracts (clients/dispatchers)

fluxon_method_generator #

Code generator for Fluxon service contracts. Generates client proxies and worker dispatchers for services extending FluxonService.

Usage #

Add dependencies in your pubspec:

dependencies:
  fluxon: ^0.0.4

dev_dependencies:
  build_runner: ^2.4.0
  fluxon_method_generator: ^0.0.4

Annotate your service and include generated part:

import 'package:fluxon/fluxon.dart';

part 'my_service.g.dart';

@ServiceContract(remote: true)
class MyService extends FluxonService {
  Future<String> greet(String name) async => 'hi $name';
}

Run code generation:

dart run build_runner build --delete-conflicting-outputs

This will generate my_service.g.dart with a client proxy and a worker dispatcher.

0
likes
120
points
31
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Code generator for fluxon service contracts (clients/dispatchers)

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, source_gen

More

Packages that depend on fluxon_method_generator