reason property

String get reason

Returns the WebSocket connection close reason provided by the server.

MDN Reference

Implementation

_i2.String get reason => _i4.getProperty(
      this,
      'reason',
    );