postV2<T> method

Future<Response<T>> postV2<T>(
  1. String path, {
  2. Object? data,
  3. Map<String, dynamic>? headers,
})

Implementation

Future<Response<T>> postV2<T>(
  String path, {
  Object? data,
  Map<String, dynamic>? headers,
}) {
  return _dioV2.post<T>(
    path,
    data: data,
    options: headers == null ? null : Options(headers: headers),
  );
}