category repo

This commit is contained in:
efrilm
2025-10-24 20:06:42 +07:00
parent 683fff6eeb
commit 71fa4823fc
29 changed files with 5434 additions and 30 deletions
@@ -0,0 +1,12 @@
part of '../category.dart';
@freezed
sealed class CategoryFailure with _$CategoryFailure {
const factory CategoryFailure.serverError(ApiFailure failure) = _ServerError;
const factory CategoryFailure.unexpectedError() = _UnexpectedError;
const factory CategoryFailure.empty() = _Empty;
const factory CategoryFailure.localStorageError(String erroMessage) =
_LocalStorageError;
const factory CategoryFailure.dynamicErrorMessage(String erroMessage) =
_DynamicErrorMessage;
}