realUri property Null safety

Uri realUri

Return the final real request uri (maybe redirect).

** Attention **: Whether this field is available depends on whether the implementation of the adapter supports it or not.

Implementation

Uri get realUri =>
    (redirects.isNotEmpty) ? redirects.last.location : requestOptions.uri;