23 lines
532 B
Dart
23 lines
532 B
Dart
import 'package:aman_kassa_flutter/redux/constants/setting_const.dart';
|
|
import 'package:meta/meta.dart';
|
|
|
|
@immutable
|
|
class SettingState {
|
|
final String mode;
|
|
final String tradeType;
|
|
|
|
SettingState({this.mode, this.tradeType});
|
|
|
|
factory SettingState.initial() => SettingState(mode: SettingModeCalc, tradeType: SettingTradeTypeGood);
|
|
|
|
SettingState copyWith({
|
|
@required mode,
|
|
@required tradeType,
|
|
}) {
|
|
return SettingState(
|
|
mode: mode ?? this.mode,
|
|
tradeType: tradeType ?? this.tradeType,
|
|
);
|
|
}
|
|
}
|