ChatComposer constructor

ChatComposer({
  1. Key? key,
  2. required dynamic onReceiveText(
    1. String?
    ),
  3. required dynamic onRecordEnd(
    1. String?
    ),
  4. dynamic onRecordStart()?,
  5. dynamic onRecordCancel()?,
  6. FocusNode? focusNode,
  7. TextEditingController? controller,
  8. Widget? leading,
  9. List<Widget>? actions,
  10. TextCapitalization? textCapitalization,
  11. TextInputAction? textInputAction,
  12. TextInputType? keyboardType,
  13. TextStyle? textStyle,
  14. InputDecoration? textFieldDecoration,
  15. EdgeInsetsGeometry? textPadding,
  16. Color? backgroundColor,
  17. Color? composerColor,
  18. Color? sendButtonColor,
  19. Color? sendButtonBackgroundColor,
  20. Color? lockColor,
  21. Color? lockBackgroundColor,
  22. Color? recordIconColor,
  23. Color? deleteButtonColor,
  24. Color? textColor,
  25. EdgeInsetsGeometry? padding,
  26. IconData? sendIcon,
  27. IconData? recordIcon,
  28. BorderRadius? borderRadius,
  29. List<BoxShadow>? shadow,
  30. Duration? maxRecordLength,
  31. dynamic onPanCancel()?,
})

Implementation

ChatComposer({
  Key? key,
  required this.onReceiveText,
  required this.onRecordEnd,
  this.onRecordStart,
  this.onRecordCancel,
  this.focusNode,
  this.controller,
  this.leading,
  this.actions,
  this.textCapitalization,
  this.textInputAction,
  this.keyboardType,
  this.textStyle,
  this.textFieldDecoration,
  this.textPadding,
  this.backgroundColor,
  this.composerColor,
  this.sendButtonColor,
  this.sendButtonBackgroundColor,
  this.lockColor,
  this.lockBackgroundColor,
  this.recordIconColor,
  this.deleteButtonColor,
  this.textColor,
  this.padding,
  this.sendIcon,
  this.recordIcon,
  this.borderRadius,
  this.shadow,
  this.maxRecordLength,
  this.onPanCancel,
}) : super(key: key) {
  localBackgroundColor = backgroundColor ?? localBackgroundColor;
  localComposerColor = composerColor ?? localComposerColor;
  localSendButtonColor = sendButtonColor ?? localSendButtonColor;
  localSendButtonBackgroundColor =
      sendButtonBackgroundColor ?? localSendButtonBackgroundColor;
  localLockColor = lockColor ?? localLockColor;
  localLockBackgroundColor = lockBackgroundColor ?? localLockBackgroundColor;
  localRecordIconColor = recordIconColor ?? localRecordIconColor;
  localDeleteButtonColor = deleteButtonColor ?? localDeleteButtonColor;
  localTextColor = textColor ?? localTextColor;
  localPadding = padding ?? localPadding;
  localSendIcon = sendIcon ?? localSendIcon;
  localRecordIcon = recordIcon ?? localRecordIcon;
  localborderRadius = borderRadius ?? localborderRadius;
  localController = controller ?? localController;
}