reasonPhrase property

  1. @override
String get reasonPhrase
override

Returns the reason phrase associated with the status code.

The reason phrase must be set before the body is written to. Setting the reason phrase after writing to the body will throw a StateError.

Implementation

@override
String get reasonPhrase => _response.reasonPhrase;