2021-03-10 16:54:41 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
/// New conversation information
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class NewConversation {
|
|
|
|
final String name;
|
2022-03-10 18:39:57 +00:00
|
|
|
final List<int?> members;
|
2021-03-10 16:54:41 +00:00
|
|
|
final bool follow;
|
|
|
|
final bool canEveryoneAddMembers;
|
2022-03-10 18:39:57 +00:00
|
|
|
final Color? color;
|
2021-03-10 16:54:41 +00:00
|
|
|
|
|
|
|
const NewConversation({
|
2022-03-10 18:39:57 +00:00
|
|
|
required this.name,
|
|
|
|
required this.members,
|
|
|
|
required this.follow,
|
|
|
|
required this.canEveryoneAddMembers,
|
|
|
|
required this.color,
|
2022-03-10 19:36:55 +00:00
|
|
|
}) :
|
|
|
|
assert(members.length > 0);
|
2021-03-10 16:54:41 +00:00
|
|
|
}
|