onDuplicate property

void Function(T)? onDuplicate
final

A callback when the item already exists in your list.

Implementation

final void Function(T)? onDuplicate;