removeCows method Null safety
Implementation
void removeCows(List<Cow> targetCows) {
targetCows.forEach((targetCow) {
_cows.removeWhere((_) => _ == targetCow);
});
notifyListeners();
}
void removeCows(List<Cow> targetCows) {
targetCows.forEach((targetCow) {
_cows.removeWhere((_) => _ == targetCow);
});
notifyListeners();
}