45 lines
889 B
Dart
45 lines
889 B
Dart
part of 'profile_bloc.dart';
|
|
|
|
abstract class ProfileEvent extends Equatable {
|
|
const ProfileEvent();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
class UploadPicture extends ProfileEvent {
|
|
final String file;
|
|
final String userId;
|
|
|
|
const UploadPicture(this.file, this.userId);
|
|
|
|
@override
|
|
List<Object?> get props => [file, userId];
|
|
}
|
|
|
|
class UpdateUserInfo extends ProfileEvent {
|
|
final String userId;
|
|
final String picture;
|
|
final String? name;
|
|
final String? nickname;
|
|
final String? email;
|
|
final String? phone;
|
|
final String? birthDate;
|
|
final String? gender;
|
|
|
|
const UpdateUserInfo({
|
|
required this.userId,
|
|
required this.picture,
|
|
this.name,
|
|
this.nickname,
|
|
this.email,
|
|
this.phone,
|
|
this.birthDate,
|
|
this.gender,
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props =>
|
|
[userId, name, nickname, email, phone, picture, birthDate, gender];
|
|
}
|