I am running list.firstWhere and this is sometimes throwing an exception:
Bad State: No element
When the exception was thrown, this was the stack:
#0 _ListBase&Object&ListMixin.firstWhere (dart:collection/list.dart:148:5)
I do not understand what this means an also could not identify the issue by looking at the source.
My firstWhere looks like this:
list.firstWhere((element) => a == b);