replaceFirstWhere method
Replaces the first items from current list, checked by condition
and replaced by replace
.
Implementation
void replaceFirstWhere(bool Function(T item) condition, T Function(T item) replace) {
return replaceWhere(condition, replace, count: 1);
}