sameStorageAs method

bool sameStorageAs(
  1. Codec<Object?> other
)

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);