value property
String
get
value
Returns the string representation of the response type
Example:
ResponseType.json.value // returns "json"
ResponseType.stream.value // returns "stream"
Implementation
String get value {
switch (this) {
case ResponseType.json:
return 'json';
case ResponseType.stream:
return 'stream';
case ResponseType.plain:
return 'plain';
case ResponseType.bytes:
return 'bytes';
}
}