wip, immutable types

This commit is contained in:
2025-01-01 14:48:52 +00:00
parent 97fe0e69d0
commit 0ded723bb9
15 changed files with 2625 additions and 15840 deletions
+14 -11
View File
@@ -1,13 +1,16 @@
class User {
final String id;
final String name;
final String email;
final String? password;
import 'package:freezed_annotation/freezed_annotation.dart';
User({
required this.id,
required this.name,
required this.email,
required this.password,
});
part 'user.freezed.dart';
part 'user.g.dart';
@freezed
class User with _$User {
const factory User({
required String id,
required String name,
required String email,
String? password,
DateTime? createdAt,
DateTime? updatedAt,
}) = _User;
}