TF-4178 Add datasource/repository/interactor for create new label

This commit is contained in:
dab246
2025-11-26 16:32:53 +07:00
committed by Dat H. Pham
parent 8f1da20e54
commit 38c47ca373
10 changed files with 128 additions and 22 deletions
@@ -0,0 +1,18 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:labels/model/label.dart';
class CreatingNewLabel extends LoadingState {}
class CreateNewLabelSuccess extends UIState {
final Label newLabel;
CreateNewLabelSuccess(this.newLabel);
@override
List<Object> get props => [newLabel];
}
class CreateNewLabelFailure extends FeatureFailure {
CreateNewLabelFailure(dynamic exception) : super(exception: exception);
}