setSearchParam method
returns searchable array for Firebase Database
Implementation
List<String> setSearchParam() {
String word = this.validate();
List<String> caseSearchList = [];
String temp = '';
for (int i = 0; i < word.length; i++) {
temp = temp + word[i];
caseSearchList.add(temp.toLowerCase());
}
return caseSearchList;
}