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,31 @@
import 'package:equatable/equatable.dart';
import '../../domain/entities/user_entity.dart';
/// State for users feature
class UsersState extends Equatable {
final List<UserEntity> users;
final bool isLoading;
final String? error;
const UsersState({
this.users = const [],
this.isLoading = false,
this.error,
});
UsersState copyWith({
List<UserEntity>? users,
bool? isLoading,
String? error,
}) {
return UsersState(
users: users ?? this.users,
isLoading: isLoading ?? this.isLoading,
error: error,
);
}
@override
List<Object?> get props => [users, isLoading, error];
}