dart map unique values code example
Example 1: dart store unique values
var ids = [1, 4, 4, 4, 5, 6, 6];
var distinctIds = ids.toSet().toList();
Example 2: dart unique list
var ids = [1, 4, 4, 4, 5, 6, 6];
var distinctIds = ids.toSet().toList();