2020-12-03 16:52:53 +00:00
|
|
|
part of 'users_cubit.dart';
|
|
|
|
|
2022-04-03 19:54:18 +00:00
|
|
|
class UsersState extends AppConfigDependendState {
|
2022-03-03 17:38:30 +00:00
|
|
|
const UsersState(this.users, this.rootUser, this.primaryUser);
|
2020-12-03 16:52:53 +00:00
|
|
|
|
|
|
|
final List<User> users;
|
2022-03-03 17:38:30 +00:00
|
|
|
final User rootUser;
|
|
|
|
final User primaryUser;
|
2020-12-03 16:52:53 +00:00
|
|
|
|
|
|
|
@override
|
2022-03-03 17:38:30 +00:00
|
|
|
List<Object> get props => [users, rootUser, primaryUser];
|
|
|
|
|
|
|
|
UsersState copyWith({
|
|
|
|
List<User>? users,
|
|
|
|
User? rootUser,
|
|
|
|
User? primaryUser,
|
|
|
|
}) {
|
|
|
|
return UsersState(
|
|
|
|
users ?? this.users,
|
|
|
|
rootUser ?? this.rootUser,
|
|
|
|
primaryUser ?? this.primaryUser,
|
|
|
|
);
|
|
|
|
}
|
2021-01-06 17:35:57 +00:00
|
|
|
|
|
|
|
bool get isEmpty => users.isEmpty;
|
2020-12-03 16:52:53 +00:00
|
|
|
}
|