2021-03-10 16:54:41 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
/// New conversation information
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class NewConversation {
|
|
|
|
final String name;
|
|
|
|
final List<int> members;
|
|
|
|
final bool follow;
|
|
|
|
final bool canEveryoneAddMembers;
|
2021-03-13 09:32:11 +00:00
|
|
|
final Color color;
|
2021-03-10 16:54:41 +00:00
|
|
|
|
|
|
|
const NewConversation({
|
|
|
|
@required this.name,
|
|
|
|
@required this.members,
|
|
|
|
@required this.follow,
|
|
|
|
@required this.canEveryoneAddMembers,
|
|
|
|
@required this.color,
|
|
|
|
}) : assert(members != null),
|
|
|
|
assert(members.length > 0),
|
|
|
|
assert(follow != null),
|
|
|
|
assert(canEveryoneAddMembers != null);
|
|
|
|
}
|