Message constructor

const Message({
  1. required String id,
  2. required String content,
  3. required DateTime sent,
  4. @Default(null) DateTime? received,
  5. @Default(MessageStatus.sending) MessageStatus status,
  6. required List<DateTime> statusChanges,
  7. @Default(null) Object? attachment,
})

Implementation

const factory Message({
  required String id,
  required String content,
  required DateTime sent,
  @Default(null) DateTime? received,
  @Default(MessageStatus.sending) MessageStatus status,
  required List<DateTime> statusChanges,
  @Default(null) Object? attachment,
}) = _Message;