dartness_generator 0.5.2-alpha copy "dartness_generator: ^0.5.2-alpha" to clipboard
dartness_generator: ^0.5.2-alpha copied to clipboard

Dartness generator provides the generator classes that are used to run dartness_server

Introduction #

dartness_generator is used with dartness_server in order to provide the code generation for some annotations

Generating code #

  1. Add dartness_generator together with build_runner in dev_dependencies also add dartness_server in the dependency section in the pubspec.yaml
dependencies:
  dartness_server: ^0.5.1-alpha

dev_dependencies:
  build_runner: ^2.2.0
  dartness_generator: ^0.5.2-alpha
  1. Add the corresponding part '.g.dart' to your classes, otherwise the new code won't be generated, you can find an example in the following code:

part 'city_controller.g.dart';

@Controller('/cities')
class CitiesController {
  @Get()
  String getCities() {
    return 'This action returns a list of cities';
  }
}
  1. Go to the root of your project and execute the following command:
$ dart run build_runner build
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Dartness generator provides the generator classes that are used to run dartness_server

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

analyzer, build, code_builder, collection, dartness_server, graphs, source_gen

More

Packages that depend on dartness_generator