ChatInputToolbar constructor

ChatInputToolbar({
  1. Key? key,
  2. TextDirection textDirection = TextDirection.ltr,
  3. FocusNode? focusNode,
  4. ScrollController? scrollController,
  5. String? text,
  6. TextInputAction? textInputAction,
  7. bool sendOnEnter = false,
  8. dynamic onTextChange(
    1. String
    )?,
  9. bool inputDisabled = false,
  10. TextEditingController? controller,
  11. List<Widget> leading = const [],
  12. List<Widget> trailling = const [],
  13. InputDecoration? inputDecoration,
  14. TextCapitalization? textCapitalization,
  15. TextStyle? inputTextStyle,
  16. BoxDecoration? inputContainerStyle,
  17. int inputMaxLines = 1,
  18. bool showInputCursor = true,
  19. int? maxInputLength,
  20. double inputCursorWidth = 2.0,
  21. Color? inputCursorColor,
  22. dynamic onSend(
    1. ChatMessage
    )?,
  23. bool reverse = false,
  24. required ChatUser user,
  25. bool alwaysShowSend = false,
  26. String messageIdGenerator()?,
  27. Widget inputFooterBuilder()?,
  28. Widget sendButtonBuilder(
    1. Function
    )?,
  29. bool showTraillingBeforeSend = true,
  30. EdgeInsets inputToolbarPadding = const EdgeInsets.all(0.0),
  31. EdgeInsets inputToolbarMargin = const EdgeInsets.all(0.0),
})

Implementation

ChatInputToolbar({
  Key? key,
  this.textDirection = TextDirection.ltr,
  this.focusNode,
  this.scrollController,
  this.text,
  this.textInputAction,
  this.sendOnEnter = false,
  this.onTextChange,
  this.inputDisabled = false,
  this.controller,
  this.leading = const [],
  this.trailling = const [],
  this.inputDecoration,
  this.textCapitalization,
  this.inputTextStyle,
  this.inputContainerStyle,
  this.inputMaxLines = 1,
  this.showInputCursor = true,
  this.maxInputLength,
  this.inputCursorWidth = 2.0,
  this.inputCursorColor,
  this.onSend,
  this.reverse = false,
  required this.user,
  this.alwaysShowSend = false,
  this.messageIdGenerator,
  this.inputFooterBuilder,
  this.sendButtonBuilder,
  this.showTraillingBeforeSend = true,
  this.inputToolbarPadding = const EdgeInsets.all(0.0),
  this.inputToolbarMargin = const EdgeInsets.all(0.0),
}) : super(key: key);