error property

String? error
final

When set, the adapter throws a DioException of errorType with this message instead of answering.

Implementation

final String? error;