retrofit_graphql 3.1.0
retrofit_graphql: ^3.1.0 copied to clipboard
retrofit_graphql or Retrofit GraphQL for Dart is a powerful code generation tool that simplifies working with GraphQL in Dart projects.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add retrofit_graphqlWith Flutter:
$ flutter pub add retrofit_graphqlThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
retrofit_graphql: ^3.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:retrofit_graphql/code_generators.dart';
import 'package:retrofit_graphql/retrofit_graphql_generator_builder.dart';