encodingLength property
Information about how long the encoding will be.
Implementation
@override
EncodingLengthInfo get encodingLength {
var trackedLength = 0;
// tuples are dynamic iff any of their member types is dynamic. Otherwise,
// it's just all static members concatenated, together.
for (final type in types) {
final length = type.encodingLength;
if (length.isDynamic) return const EncodingLengthInfo.dynamic();
trackedLength += length.length!;
}
return EncodingLengthInfo(trackedLength);
}