mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-26 08:03:06 +01:00
replace Error with UnimplementedError
This commit is contained in:
parent
bf5d8b4db6
commit
6e5e48d05f
@ -96,7 +96,7 @@ class _SearchResultsList extends HookWidget {
|
|||||||
case SearchType.users:
|
case SearchType.users:
|
||||||
return s.users;
|
return s.users;
|
||||||
default:
|
default:
|
||||||
throw Error();
|
throw UnimplementedError();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
builder: (data) {
|
builder: (data) {
|
||||||
@ -116,7 +116,7 @@ class _SearchResultsList extends HookWidget {
|
|||||||
case SearchType.users:
|
case SearchType.users:
|
||||||
return UsersListItem(user: data as UserView);
|
return UsersListItem(user: data as UserView);
|
||||||
default:
|
default:
|
||||||
throw Error();
|
throw UnimplementedError();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user