selfprivacy.org.app/lib/logic/models/jobs/job.dart

31 lines
593 B
Dart
Raw Normal View History

2021-05-25 21:53:54 +00:00
import 'package:equatable/equatable.dart';
2021-06-08 18:52:44 +00:00
import 'package:flutter/material.dart';
2021-05-25 21:53:54 +00:00
import 'package:selfprivacy/utils/password_generator2.dart';
2021-06-08 18:52:44 +00:00
import '../user.dart';
@immutable
2021-05-25 21:53:54 +00:00
class Job extends Equatable {
Job({
String? id,
required this.title,
}) : id = id ?? getRandomString(5);
final String title;
final String id;
@override
List<Object> get props => [id, title];
}
2021-06-08 18:52:44 +00:00
class CreateUserJob extends Job {
CreateUserJob({
required this.user,
}) : super(title: 'Create ${user.login}');
final User user;
@override
List<Object> get props => [id, title];
}