ChatComposer constructor

const ChatComposer({
  1. TextStyle? textStyle,
  2. int minLines = 1,
  3. int maxLines = 6,
  4. InputDecoration? decoration = const InputDecoration(),
  5. EdgeInsetsGeometry padding = const EdgeInsets.only(top: 16.0),
})

Creates a ChatComposer with the given textStyle, line limits, decoration, and padding.

Implementation

const ChatComposer({
  this.textStyle,
  this.minLines = 1,
  this.maxLines = 6,
  this.decoration = const InputDecoration(),
  this.padding = const EdgeInsets.only(top: 16.0),
})  : assert(minLines >= 0),
      assert(maxLines >= minLines),
      builder = null;