InputSection constructor

const InputSection({
  1. Key? key,
  2. required double leftInputMargin,
  3. required double rightInputMargin,
  4. required bool hasSendButton,
  5. required bool shouldShowSendButton,
  6. required FocusNode focusNode,
  7. required MentionInputTextEditingController controller,
  8. required bool shouldHideLeftWidgets,
  9. required bool shouldHideRightWidgets,
  10. List<Widget>? leftWidgets,
  11. List<Widget>? rightWidgets,
  12. Function? onSend,
  13. bool clearTextAfterSent = true,
  14. String? placeHolder,
  15. bool? autoFocus,
  16. EdgeInsetsGeometry? padding,
  17. Color? color,
  18. BorderRadius? borderRadius,
  19. Decoration? decoration,
  20. Widget? sendIcon,
  21. Color? cursorColor,
  22. int? maxLength,
  23. int? minLines,
  24. int? maxLines,
  25. TextInputType? keyboardType,
  26. TextCapitalization textCapitalization = TextCapitalization.none,
  27. TextAlign textAlign = TextAlign.start,
  28. TextStyle? style,
  29. TextAlignVertical? textAlignVertical,
  30. TextDirection? textDirection,
})

Implementation

const InputSection(
    {super.key,
    required this.leftInputMargin,
    required this.rightInputMargin,
    required this.hasSendButton,
    required this.shouldShowSendButton,
    required this.focusNode,
    required this.controller,
    required this.shouldHideLeftWidgets,
    required this.shouldHideRightWidgets,
    this.leftWidgets,
    this.rightWidgets,
    this.onSend,
    this.clearTextAfterSent = true,
    this.placeHolder,
    this.autoFocus,
    this.padding,
    this.color,
    this.borderRadius,
    this.decoration,
    this.sendIcon,
    this.cursorColor,
    this.maxLength,
    this.minLines,
    this.maxLines,
    this.keyboardType,
    this.textCapitalization = TextCapitalization.none,
    this.textAlign = TextAlign.start,
    this.style,
    this.textAlignVertical,
    this.textDirection});