2021-03-10 16:54:41 +00:00
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
|
|
|
|
/// Conversation settings update
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class NewConversationsSettings {
|
|
|
|
final int convID;
|
|
|
|
final bool following;
|
|
|
|
final bool isComplete;
|
|
|
|
final String name;
|
2022-03-10 18:39:57 +00:00
|
|
|
final bool? canEveryoneAddMembers;
|
|
|
|
final Color? color;
|
2021-03-10 16:54:41 +00:00
|
|
|
|
|
|
|
const NewConversationsSettings({
|
2022-03-10 18:39:57 +00:00
|
|
|
required this.convID,
|
|
|
|
required this.following,
|
|
|
|
required this.isComplete,
|
|
|
|
required this.name,
|
|
|
|
required this.canEveryoneAddMembers,
|
|
|
|
required this.color,
|
2021-03-10 16:54:41 +00:00
|
|
|
}) : assert(convID != null),
|
|
|
|
assert(convID > 0),
|
|
|
|
assert(following != null),
|
|
|
|
assert(isComplete != null),
|
2021-03-13 10:08:08 +00:00
|
|
|
assert(!isComplete || canEveryoneAddMembers != null);
|
2021-03-10 16:54:41 +00:00
|
|
|
}
|