selfprivacy.org.app/lib/logic/models/service.dart
2020-12-06 08:28:31 +01:00

26 lines
493 B
Dart

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