Generator enum

The name of the generator to use

Inheritance

Constructors

Generator()
const

Values

dart → const Generator

This generator uses the default http package that comes with dart corresponds to dart

dio → const Generator

This generator uses the dio package. Source gen is required after generating code with this generator corresponds to dart-dio

A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout etc https://pub.flutter-io.cn/packages/dio

dioAlt → const Generator

This uses the generator provided by bluetrainsoftware which internally uses the dio package

You can read more about it here https://github.com/dart-ogurets/dart-openapi-maven

dioNext → const Generator

This uses the next gen dio generator. This is experimental and use at your own risk. It might be removed or renamed in the future

You can read more about it here https://github.com/OpenAPITools/openapi-generator/pull/8869

jaguar → const Generator

This generates code based on the jaguar package Source gen is required after generating code with this generator corresponds to dart-jaguar

An Http Api generator inspired by Retrofit for Dart

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Generator>
A constant List of the values in this enum, in order of their declaration.