IdGetter<E> typedef
IdGetter<E> =
String Function(E object)
A function that takes an object of type E and returns its ID as a string.
This typedef is used to define how objects are identified within a storage container. When provided, it allows the container to extract IDs from objects rather than generating new IDs.
Parameters:
object- The object from which to extract the ID.
Returns: A string representing the unique identifier for the object.
Implementation
typedef IdGetter<E> = String Function(E object);