onDuplicate property
void Function(T)?
onDuplicate
final
A callback when the item already exists in your list.
Implementation
final void Function(T)? onDuplicate;
A callback when the item already exists in your list.
final void Function(T)? onDuplicate;