toInteger method

RespInteger toInteger()

Converts this type to an integer. Throws a StateError if this is not an integer.

Implementation

RespInteger toInteger() => throw StateError('${toString()} is not an integer!');