encodeValue method
Encode the value. This needs to be public because it is used by encodeValue() from different types. @internal
Implementation
@override
Uint8List encodeValue(dynamic x) {
assert((x is int || x is BigInt),
"value with ${x.runtimeType} has to be int or BigInt");
return writeIntLE(x, (_bits / 8).ceil());
}