mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 18:03:12 +00:00
27 lines
726 B
Dart
27 lines
726 B
Dart
// part of 'services_cubit.dart';
|
|
|
|
// @immutable
|
|
// class ServicesState extends Equatable{
|
|
// ServicesState(this.all);
|
|
|
|
// final List<Service> all;
|
|
|
|
// ServicesState updateElement(Service service, StateType newState) {
|
|
// var newList = [...all];
|
|
// var index = newList.indexOf(service);
|
|
// newList[index] = service.updateState(newState);
|
|
// return ServicesState(newList);
|
|
// }
|
|
|
|
// List<Service> get connected => all
|
|
// .where((service) => service.state != StateType.uninitialized)
|
|
// .toList();
|
|
|
|
// List<Service> get uninitialized => all
|
|
// .where((service) => service.state == StateType.uninitialized)
|
|
// .toList();
|
|
|
|
// @override
|
|
// List<Object> get props => all;
|
|
// }
|