Init model module
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:model/user/user_id.dart';
|
||||
|
||||
class User with EquatableMixin {
|
||||
|
||||
final UserId userId;
|
||||
final String firstName;
|
||||
final String lastName;
|
||||
|
||||
User(
|
||||
this.userId,
|
||||
this.firstName,
|
||||
this.lastName,
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object> get props => [
|
||||
userId,
|
||||
firstName,
|
||||
lastName,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class UserId with EquatableMixin {
|
||||
final String id;
|
||||
|
||||
UserId(this.id);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [id];
|
||||
}
|
||||
Reference in New Issue
Block a user