fetchCows method Null safety

Future<void> fetchCows()

Implementation

Future<void> fetchCows() async {
  try {
    cows = (await ApiService().fetchCows())!;
    cows = ApiService().cowState.groupCows;
  } catch (e) {
    LogManager().addLog(e.toString(), screen: runtimeType.toString());
  }
}