descriptionIdentity method

String? descriptionIdentity(
  1. PersistentAccessHandleDescription description
)

Returns a stable identity for metadata recovered from a stored handle.

The default implementation uses PersistentAccessHandleDescription.lastKnownPath. Backends whose identity is case-insensitive or not path-based should override this alongside entityIdentity. Returns null when the description carries no usable identity.

Implementation

String? descriptionIdentity(
  final PersistentAccessHandleDescription description,
) {
  final lastKnownPath = description.lastKnownPath;
  if (lastKnownPath == null) {
    return null;
  }
  return path.normalize(path.absolute(lastKnownPath));
}