descriptionIdentity method

  1. @override
String? descriptionIdentity(
  1. PersistentAccessHandleDescription description
)
override

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

@override
String? descriptionIdentity(
  final PersistentAccessHandleDescription description,
) {
  final lastKnownPath = description.lastKnownPath;
  return lastKnownPath == null ? null : _identityForPath(lastKnownPath);
}