decodeVarint7 static method

dynamic decodeVarint7(
  1. int byte
)

Utility method that decodes a varint7 value. Using this is easier because you don't have to convert your byte into a Uint8List object first.

Implementation

static decodeVarint7(int byte) {
  Uint8List input = Uint8List.fromList([byte]);
  return decodeSigned(input);
}