completed ui for current user apps
This commit is contained in:
parent
24f458b06f
commit
41b7d22fd9
14 changed files with 718 additions and 37 deletions
14
lib/utils/set_extension.dart
Normal file
14
lib/utils/set_extension.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
extension SetExtension<T> on Set<T> {
|
||||
int indexOf(T el) {
|
||||
if (contains(el)) {
|
||||
int idx = 0;
|
||||
for (final e in this) {
|
||||
if (e == el) {
|
||||
return idx;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue