mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 17:26:35 +00:00
27 lines
565 B
Dart
27 lines
565 B
Dart
part of 'users_cubit.dart';
|
|
|
|
class UsersState extends AppConfigDependendState {
|
|
const UsersState(this.users, this.rootUser, this.primaryUser);
|
|
|
|
final List<User> users;
|
|
final User rootUser;
|
|
final User primaryUser;
|
|
|
|
@override
|
|
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,
|
|
);
|
|
}
|
|
|
|
bool get isEmpty => users.isEmpty;
|
|
}
|