usesAuth property

bool get usesAuth

Whether the Dio instance currently has an Authorization header set.

This is a synchronous check of the current header state.

Implementation

bool get usesAuth =>
    dio.options.headers.containsKey(RestApiClientKeys.authorization);