TF-3278 Handle open app via deep link at MailboxDashboard screen
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import 'package:tmail_ui_user/features/home/domain/state/auto_sign_in_via_deep_link_state.dart';
|
||||
import 'package:tmail_ui_user/features/login/presentation/model/login_navigate_type.dart';
|
||||
import 'package:tmail_ui_user/main/routes/router_arguments.dart';
|
||||
|
||||
class LoginNavigateArguments extends RouterArguments {
|
||||
|
||||
final LoginNavigateType navigateType;
|
||||
final AutoSignInViaDeepLinkSuccess? autoSignInViaDeepLinkSuccess;
|
||||
|
||||
LoginNavigateArguments({
|
||||
required this.navigateType,
|
||||
this.autoSignInViaDeepLinkSuccess,
|
||||
});
|
||||
|
||||
factory LoginNavigateArguments.autoSignIn({
|
||||
required AutoSignInViaDeepLinkSuccess autoSignInViaDeepLinkSuccess,
|
||||
}) {
|
||||
return LoginNavigateArguments(
|
||||
navigateType: LoginNavigateType.autoSignIn,
|
||||
autoSignInViaDeepLinkSuccess: autoSignInViaDeepLinkSuccess,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
navigateType,
|
||||
autoSignInViaDeepLinkSuccess,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
enum LoginNavigateType {
|
||||
autoSignIn
|
||||
}
|
||||
Reference in New Issue
Block a user