Line data Source code
1 : import 'package:freezed_annotation/freezed_annotation.dart';
2 :
3 : import '../../types/redux_action.dart';
4 : import '../../types/typedefs.dart';
5 : import '../enums/auth_step_enum.dart';
6 :
7 : part 'set_auth_step_action.freezed.dart';
8 : part 'set_auth_step_action.g.dart';
9 :
10 : @freezed
11 : class SetAuthStepAction with _$SetAuthStepAction, ReduxAction {
12 126 : const SetAuthStepAction._();
13 : const factory SetAuthStepAction(AuthStepEnum step) = _SetAuthStepAction;
14 :
15 2 : factory SetAuthStepAction.contactingApple() =>
16 : const SetAuthStepAction(AuthStepEnum.contactingApple);
17 0 : factory SetAuthStepAction.contactingGoogle() =>
18 : const SetAuthStepAction(AuthStepEnum.contactingGoogle);
19 0 : factory SetAuthStepAction.signingInWithFirebase() =>
20 : const SetAuthStepAction(AuthStepEnum.signingInWithFirebase);
21 0 : factory SetAuthStepAction.waitingForInput() =>
22 : const SetAuthStepAction(AuthStepEnum.waitingForInput);
23 :
24 0 : factory SetAuthStepAction.fromJson(JsonMap json) =>
25 0 : _$SetAuthStepActionFromJson(json);
26 :
27 0 : @override
28 : String get typeName => 'SetAuthStepAction';
29 : }
|