Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Dart
StateError (Bad state: No element)
Aly V
Programming language:
Dart
2021-03-11 06:06:06
0
Q:
StateError (Bad state: No element)
Colo
Code:
Dart
2021-08-03 02:15:39
// Use the orElse and set it to null. someIterable.firstWhere(test, orElse: () => null);
3
Tags
error
element
state
New to Communities?
Join the community