TF-536 Add presentation layer for edit identity

This commit is contained in:
dab246
2022-05-06 15:13:37 +07:00
committed by Dat H. Pham
parent 15de506b97
commit 5cc5ff9761
12 changed files with 246 additions and 40 deletions
@@ -1,14 +1,25 @@
import 'package:equatable/equatable.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/identities/identity.dart';
import 'package:model/model.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/model/identity_action_type.dart';
class IdentityCreatorArguments with EquatableMixin {
final AccountId accountId;
final UserProfile userProfile;
final IdentityActionType actionType;
final Identity? identity;
IdentityCreatorArguments(this.accountId, this.userProfile);
IdentityCreatorArguments(
this.accountId,
this.userProfile,
{
this.identity,
this.actionType = IdentityActionType.create
}
);
@override
List<Object?> get props => [accountId, userProfile];
List<Object?> get props => [accountId, userProfile, identity, actionType];
}