UserMessage.text constructor

UserMessage.text(
  1. String text, {
  2. DateTime? timestamp,
})

Convenience constructor for a plain-text user message.

Implementation

UserMessage.text(String text, {DateTime? timestamp})
  : content = text,
    timestamp = timestamp ?? DateTime.now();