more elegantly handle empty displaynames
This commit is contained in:
parent
130dbac879
commit
eb87cbc17b
4 changed files with 30 additions and 18 deletions
|
|
@ -12,8 +12,6 @@ class ProfileController extends AsyncNotifier<Profile> {
|
|||
return client.getProfile(userId);
|
||||
}
|
||||
|
||||
static final provider =
|
||||
AsyncNotifierProvider.family<ProfileController, Profile, String>(
|
||||
ProfileController.new,
|
||||
);
|
||||
static final provider = AsyncNotifierProvider.family
|
||||
.autoDispose<ProfileController, Profile, String>(ProfileController.new);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue