ClueText constructor

const ClueText(
  1. String text, {
  2. bool isRequired = false,
  3. Key? key,
  4. TextStyle style = textStyle,
  5. TextAlign textAlign = TextAlign.start,
  6. List<TargetModel> targetList = const [],
  7. int? maxLines,
})

Creates a ClueText.

text is the main text to display. isRequired determines if an asterisk should be appended to the text. style is the text style of the main text. textAlign specifies the alignment of the text. targetList is a list of TargetModels for rich text patterns. maxLines specifies the maximum number of lines for the text.

Implementation

const ClueText(
  this.text, {
  this.isRequired = false,
  super.key,
  this.style = textStyle,
  this.textAlign = TextAlign.start,
  this.targetList = const [],
  this.maxLines,
});