forked from firka/student-legacy
find schools by instituteCode
This commit is contained in:
parent
2b7e143812
commit
8451983163
@ -17,6 +17,8 @@ List<School> searchSchools(List<School> all, String pattern) {
|
||||
});
|
||||
|
||||
if (contains == pattern.split(" ").length) results.add(item);
|
||||
|
||||
if (item.instituteCode.toLowerCase().specialChars().contains(pattern)) results.add(item);
|
||||
}
|
||||
|
||||
results.sort((a, b) => a.name.compareTo(b.name));
|
||||
|
Loading…
x
Reference in New Issue
Block a user