dioForApplicationJSONProvider top-level property

Provider<Dio> dioForApplicationJSONProvider
final

Provide Dio client for content type application/json.

Especially use for requesting REST APIs.

Implementation

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