errorMessage property

String get errorMessage

Retrieves the error message associated with the response.

Returns the error message if an exception occurred during the operation; otherwise, returns an empty string.

Implementation

String get errorMessage => exception?.message ?? "";