sameStorageAs method
Whether two codecs have the same storage and decoding identity. Nullable wrappers preserve identity; independently mapped codecs do not.
Implementation
bool sameStorageAs(Codec<Object?> other) =>
(_identity ?? this) == (other._identity ?? other);