toSimpleString method

RespSimpleString toSimpleString()

Converts this type to a simple string. Throws a StateError if this is not a simple string.

Implementation

RespSimpleString toSimpleString() => throw StateError('${toString()} is not a simple string!');