NiceChatInput constructor

const NiceChatInput({
  1. Key? key,
  2. void onSend(
    1. String message
    )?,
  3. void onTextChanged(
    1. String message
    )?,
  4. VoidCallback? onAttachment,
  5. VoidCallback? onVoice,
  6. VoidCallback? onEmoji,
  7. String? hintText,
  8. String? initialText,
  9. int maxLines = 5,
  10. bool showAttachment = true,
  11. bool showVoice = false,
  12. bool showEmoji = true,
  13. bool enabled = true,
  14. FocusNode? focusNode,
  15. Widget? leading,
  16. Widget? trailing,
})

Implementation

const NiceChatInput({
  super.key,
  this.onSend,
  this.onTextChanged,
  this.onAttachment,
  this.onVoice,
  this.onEmoji,
  this.hintText,
  this.initialText,
  this.maxLines = 5,
  this.showAttachment = true,
  this.showVoice = false,
  this.showEmoji = true,
  this.enabled = true,
  this.focusNode,
  this.leading,
  this.trailing,
});