writeProxyApiBaseCodec method
Writes the base codec to be used by all ProxyApis.
This codec should use 128
as the identifier for objects that exist in
an InstanceManager
. The write implementation should convert an instance
to an identifier. The read implementation should covert the identifier
to an instance.
This will serve as the default codec for all ProxyApis. If a ProxyApi
needs to create its own codec (it has methods/fields/constructor that use
a data class) it should extend this codec and not StandardMessageCodec
.
Implementation
@override
void writeProxyApiBaseCodec(
DartOptions generatorOptions,
Root root,
Indent indent,
) {
indent.format(proxyApiBaseCodec);
}