add dropdown

This commit is contained in:
Phuoc Nguyen
2025-10-28 16:24:17 +07:00
parent 0010446298
commit 5cfc56f40d
20 changed files with 912 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
import 'package:dartz/dartz.dart';
import '../../../../core/errors/failures.dart';
import '../entities/user_entity.dart';
/// Abstract repository interface for users
abstract class UsersRepository {
/// Get all users (from local storage if available, otherwise from API)
Future<Either<Failure, List<UserEntity>>> getUsers();
/// Sync users from API and save to local storage
Future<Either<Failure, List<UserEntity>>> syncUsers();
/// Clear all users from local storage
Future<Either<Failure, void>> clearUsers();
}