Body class final

Declares the Body of Post, Put, and Patch requests

@Post()
Future<Response> post(@Body() Map<String, dynamic> body);

The body can be of any type, but chopper does not automatically convert it to JSON. See Converter to apply conversion to the body.

Annotations
  • @immutable
  • @Target({TargetKind.parameter})

Constructors

Body()
Declares the Body of Post, Put, and Patch requests
const

Properties

hashCode int
The hash code for this object.
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