uniqueNodeId property
String
get
uniqueNodeId
to generate a unique id for an item this is used when you want to add an item to the list and you don't want to provide an id for it you might want to get an id from the server, but in case of a local list you can use this function
Implementation
String get uniqueNodeId {
int id = 0;
while (_nodes.any((element) => idProvider(element.data) == id.toString())) {
id++;
}
return id.toString();
}