ChatComposer constructor
ChatComposer({
- Key? key,
- required dynamic onReceiveText(),
- required dynamic onRecordEnd(),
- dynamic onRecordStart()?,
- dynamic onRecordCancel()?,
- FocusNode? focusNode,
- TextEditingController? controller,
- Widget? leading,
- List<
Widget> ? actions, - TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- TextInputType? keyboardType,
- TextStyle? textStyle,
- InputDecoration? textFieldDecoration,
- EdgeInsetsGeometry? textPadding,
- Color? backgroundColor,
- Color? composerColor,
- Color? sendButtonColor,
- Color? sendButtonBackgroundColor,
- Color? lockColor,
- Color? lockBackgroundColor,
- Color? recordIconColor,
- Color? deleteButtonColor,
- Color? textColor,
- EdgeInsetsGeometry? padding,
- IconData? sendIcon,
- IconData? recordIcon,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? shadow, - Duration? maxRecordLength,
- 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;
}