TF-4193 Show/Hide Label list when toggle label state in Setting

This commit is contained in:
dab246
2025-12-09 16:05:19 +07:00
committed by Dat H. Pham
parent 10038a3836
commit ef2ab39a3a
18 changed files with 209 additions and 24 deletions
@@ -0,0 +1,19 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
class GettingLabelSettingState extends LoadingState {}
class GetLabelSettingStateSuccess extends UIState {
final bool isEnabled;
final AccountId accountId;
GetLabelSettingStateSuccess(this.isEnabled, this.accountId);
@override
List<Object> get props => [isEnabled, accountId];
}
class GetLabelSettingStateFailure extends FeatureFailure {
GetLabelSettingStateFailure(dynamic exception) : super(exception: exception);
}