Encode the value. This needs to be public because it is used by encodeValue() from different types. @internal
@override encodeValue(T x) { _checkType(); return _type!.encodeValue(x); }