flutter count list

57

var comments = <Comment>[...];
var count = comments.where((c) => c.product_id == someProductId).toList().length;

Comments

Submit
0 Comments