import '../../../common/domain/metal_type.dart'; enum PriceColorMode { redUpGreenDown('红涨绿跌'), greenUpRedDown('绿涨红跌'); const PriceColorMode(this.label); final String label; } class ProfileSettings { const ProfileSettings({ required this.amountHidden, required this.recycleDiscounts, required this.purityPresets, required this.priceColorMode, required this.mockLoggedIn, }); final bool amountHidden; final Map recycleDiscounts; final Map purityPresets; final PriceColorMode priceColorMode; final bool mockLoggedIn; ProfileSettings copyWith({ bool? amountHidden, Map? recycleDiscounts, Map? purityPresets, PriceColorMode? priceColorMode, bool? mockLoggedIn, }) { return ProfileSettings( amountHidden: amountHidden ?? this.amountHidden, recycleDiscounts: recycleDiscounts ?? this.recycleDiscounts, purityPresets: purityPresets ?? this.purityPresets, priceColorMode: priceColorMode ?? this.priceColorMode, mockLoggedIn: mockLoggedIn ?? this.mockLoggedIn, ); } }