id method
Returns an unique id for item
.
Implementation
String id(T? item) {
if (item == null) return '';
if (!_ids.containsKey(item)) {
_ids[item] = _idGenerator.nextId();
}
return _ids[item] ?? '';
}
Returns an unique id for item
.
String id(T? item) {
if (item == null) return '';
if (!_ids.containsKey(item)) {
_ids[item] = _idGenerator.nextId();
}
return _ids[item] ?? '';
}