firstWhereOrNull method
Returns the first value in the list if it is success null otherwise
Implementation
T? firstWhereOrNull(bool Function(T) predicate) {
final iterable = whereOrNull(predicate);
if (iterable != null && iterable.isNotEmpty) {
return iterable.first;
}
return null;
}