Post constructor

const Post({
  1. bool optionalBody = false,
  2. String path = '',
  3. Map<String, String> headers = const {},
})

Implementation

const Post({
  bool optionalBody = false,
  String path = '',
  Map<String, String> headers = const {},
}) : super(
        HttpMethod.Post,
        optionalBody: optionalBody,
        path: path,
        headers: headers,
      );