[Rule Suggestion] Type-safe collection rules #7
TesteurManiak
started this conversation in
Ideas
Replies: 1 comment
-
Great, if you are sure that the element is in you can disable this rule on your line, but this should be the default |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
avoid_first
: Prefer type-safe operationfirstOrNull
avoid_last
: Prefer type-safe operationlastOrNull
avoid_single
: Prefer type-safe operationsingleOrNull
avoid_element_at
: Prefer type-safe operationelementAtOrNull
avoid_first_where
: Prefer type-safe operationfirstWhereOrNull
Those methods can be found in the collection package.
Beta Was this translation helpful? Give feedback.
All reactions