chopper_generator

pub package

This package provides the code generator for the Chopper package.

Installation

Add this package as a development dependency alongside build_runner:

dart pub add dev:build_runner dev:chopper_generator

Usage

After defining services with @ChopperApi, generate the .chopper.dart files:

dart run build_runner build --delete-conflicting-outputs

For examples please refer to the main Chopper package and/or read the documentation.

Libraries

chopper_generator