error property

String? get error

Why the connection closed or failed, if it did.

Implementation

String? get error => _error;