1
0
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:
krawieck 2021-01-09 20:06:16 +01:00
parent bf5d8b4db6
commit 6e5e48d05f

View File

@ -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();
} }
}, },
); );