StrInList method
Return List of items, where #String exist. from dawo-tools.
Implementation
List<String> StrInList(List<String> _l, String _s) {
List<String> _queryL = [];
for (var x = 0; x < _l.length; x++) {
// using now #contains instead of: if (_l[x].indexOf(_s) > -1)
if (_l[x].contains(_s)) {
_queryL.add(_l[x]);
}
}
return _queryL; // 0-length check in the receiver side.
}