StateRor (schlechter Zustand: kein Element)

// Use the orElse and set it to null.
someIterable.firstWhere(test, orElse: () => null);
loonix