isListOfStrings function
Returns true
if list
values are of type String.
Implementation
bool isListOfStrings(Iterable? list) {
if (list == null || list.isEmpty) return false;
for (var value in list) {
if (value is! String) return false;
}
return true;
}