isListEntriesAllOfType function
Returns true
if all list
elements are of type
.
Implementation
bool isListEntriesAllOfType(Iterable? list, Type type) {
if (list == null || list.isEmpty) return false;
return listMatchesAll(list, (e) => e != null && e.runtimeType == type);
}