-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration scripts, remove dependencies to codegen, and cleanups
- Loading branch information
1 parent
29b7c8b
commit 5dcae3f
Showing
32 changed files
with
734 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
part of 'user_repository.dart'; | ||
|
||
@freezed | ||
class UserRepositoryState with _$UserRepositoryState { | ||
const factory UserRepositoryState({ | ||
@Default({}) Map<int, UserModel> users, | ||
}) = _UserRepositoryState; | ||
class UserRepositoryState with EquatableMixin { | ||
final Map<int, UserModel> users; | ||
const UserRepositoryState({ | ||
this.users = const {}, | ||
}); | ||
|
||
factory UserRepositoryState.fromJson(Map<String, dynamic> json) => | ||
_$UserRepositoryStateFromJson(json); | ||
UserRepositoryState copyWith({ | ||
Map<int, UserModel>? users, | ||
}) { | ||
return UserRepositoryState( | ||
users: users ?? this.users, | ||
); | ||
} | ||
|
||
@override | ||
List<Object?> get props => [users]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.