RichAction.sendMessage constructor

  1. @FreezedUnionValue.new('send_message')
const RichAction.sendMessage({
  1. required String message,
  2. required String label,
  3. @JsonKey.new(name: 'show_in_chat') @Default.new(true) bool showInChat,
  4. @Default.new('secondary') String style,
})

Action to send a message in the chat

Implementation

@FreezedUnionValue('send_message')
const factory RichAction.sendMessage({
  required String message,
  required String label,
  @JsonKey(name: 'show_in_chat') @Default(true) bool showInChat,
  @Default('secondary') String style,
}) = SendMessageAction;