selfprivacy.org.app/lib/logic/cubit/services/services_cubit.dart

29 lines
810 B
Dart
Raw Normal View History

2021-03-18 00:55:38 +00:00
// import 'package:bloc/bloc.dart';
// import 'package:equatable/equatable.dart';
// import 'package:meta/meta.dart';
// import 'package:selfprivacy/logic/models/service.dart';
// import 'package:selfprivacy/logic/models/state_types.dart';
2020-12-10 20:33:19 +00:00
2021-03-18 00:55:38 +00:00
// export 'package:provider/provider.dart';
// export 'package:selfprivacy/logic/models/state_types.dart';
2020-12-01 19:08:19 +00:00
2021-03-18 00:55:38 +00:00
// part 'services_state.dart';
2020-12-01 19:08:19 +00:00
2021-03-18 00:55:38 +00:00
// class ServicesCubit extends Cubit<ServicesState> {
// ServicesCubit() : super(ServicesState(all));
2020-12-01 19:08:19 +00:00
2021-03-18 00:55:38 +00:00
// void connect(Service service) {
// var newState = state.updateElement(service, StateType.stable);
// emit(newState);
// }
// }
2020-12-01 19:08:19 +00:00
2021-03-18 00:55:38 +00:00
// final all = ServiceTypes.values
// .map(
// (type) => Service(
// state: StateType.uninitialized,
// type: type,
// ),
// )
// .toList();