I have the list of elements in flutter like this in dart:
[3, 1, 0, 1, 3, 1]
I want to this:
if ‘1’ element of this list is repeated three times then do something.
as you see ‘1’ number has been repeated three times.
I have the list of elements in flutter like this in dart:
[3, 1, 0, 1, 3, 1]
I want to this:
if ‘1’ element of this list is repeated three times then do something.
as you see ‘1’ number has been repeated three times.
2
Answers
Try this