post property

String? post
final

Set post to make the request using POST instead of GET. In the constructor, post must be one of the following:

  • a String: POST request with post as the body, encoded in utf8
  • a Map: will be jsonEncoded to a String and set as the POST body
  • a List of bytes: will be converted to a String using String.fromCharCodes and set as the POST body
  • a List: map will be jsonEncoded to a String and set as the POST body

The field post will be a String

Implementation

final String? post;