CQEmojiInputTextView constructor

CQEmojiInputTextView({
  1. Key? key,
  2. String? text,
  3. String? placeholder,
  4. int? maxLength,
  5. int? maxLines,
  6. double? minHeight,
  7. double? maxHeight,
  8. required TextChangeCallback textChangeCallback,
})

Implementation

CQEmojiInputTextView({
  Key? key,
  String? text,
  String? placeholder,
  int? maxLength,
  int? maxLines,
  double? minHeight,
  double? maxHeight,
  required TextChangeCallback textChangeCallback,
}) : super(
        key: key,
        text: text,
        placeholder: placeholder,
        maxLength: maxLength,
        maxLines: maxLines,
        minHeight: minHeight,
        maxHeight: maxHeight,
        textChangeCallback: textChangeCallback,
        maxLengthAlgorithm: (String currentText) {
          int showTextLength = currentText.characters.length;
          return showTextLength;
        },
        inputFormatters: <TextInputFormatter>[
          CQEmojiLengthLimitingTextInputFormatter(maxLength),
        ],
      );