dioForXmlProvider top-level property

Provider<Dio> dioForXmlProvider
final

Provide Dio client for content type text/xml; charset=utf-8.

Especially use for requesting SOAP APIs with envelop body.

Implementation

final dioForXmlProvider = Provider(
  (ref) => Dio()
    ..options = BaseOptions(
      contentType: ApiUtils.textXml,
    ),
);