end method
Ends encoding the keyed collection.
No more key-value pairs should be encoded after this method has been called.
Implementation
@override
void end() {
_parentPacker.packMapLength(realLength);
_parentPacker._putBytes(_packer.takeBytes());
}