selfprivacy.org.app/lib/logic/models/service.dart
2020-12-10 21:33:19 +01:00

26 lines
482 B
Dart

import 'package:equatable/equatable.dart';
import 'package:selfprivacy/logic/models/state_types.dart';
enum ServiceTypes {
messanger,
mail,
passwordManager,
github,
cloud,
}
class Service extends Equatable {
const Service({this.state, this.type});
final StateType state;
final ServiceTypes type;
Service updateState(StateType newState) => Service(
state: newState,
type: type,
);
@override
List<Object> get props => [state, type];
}