words function
Implementation
List<String> words(String text, {bool unique = false}) {
var list = text.split(' ').where((e) => e != ' ').toList();
if (!unique) {
return list;
} else {
List<String> uniqueList = [];
for (var s in list) {
if (!uniqueList.contains(s)) {
uniqueList.add(s);
}
}
return uniqueList;
}
}