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 :
6 : part 'set_theme_mode_action.freezed.dart';
7 : part 'set_theme_mode_action.g.dart';
8 :
9 : @freezed
10 : class SetThemeModeAction with _$SetThemeModeAction, ReduxAction {
11 0 : const SetThemeModeAction._();
12 : const factory SetThemeModeAction(int themeMode) = _SetThemeModeAction;
13 :
14 0 : factory SetThemeModeAction.fromJson(JsonMap json) =>
15 0 : _$SetThemeModeActionFromJson(json);
16 :
17 0 : @override
18 : String get typeName => 'SetThemeModeAction';
19 : }
|