Fix riverpod code generation

This commit is contained in:
problematicconsumer
2023-09-02 22:33:29 +03:30
parent 9a0728371e
commit 2ea54c8117
2 changed files with 4 additions and 3 deletions

View File

@@ -15,14 +15,14 @@ class ProfileDetailNotifier extends _$ProfileDetailNotifier with AppLogger {
Future<ProfileDetailState> build(
String id, {
String? url,
String? name,
String? profileName,
}) async {
if (id == 'new') {
return ProfileDetailState(
profile: Profile(
id: const Uuid().v4(),
active: true,
name: name ?? "",
name: profileName ?? "",
url: url ?? "",
lastUpdate: DateTime.now(),
),