The argument type 'List' can't be assigned to the parameter type 'Iterable'. I am facing the issue while try to add data to a list.
getBatchDates() async {
try {
isLoading(true);
var batchDates = await api.getUserEnrollmentBatches();
if (batchDates != null) {
return BatchDate.assignAll(batchDates);
}
} finally {
isLoading(false);
}
}
