error property

String? error
final

The error that triggered the close, if any.

If this property is undefined, the connection was closed normally and without error.

Implementation

final String? error;