WordSelectableText constructor

const WordSelectableText({
  1. Key? key,
  2. required String text,
  3. dynamic onWordTapped(
    1. String word,
    2. int? index
    )?,
  4. bool highlight = true,
  5. Color? highlightColor,
  6. String alphabets = '[a-zA-Z]',
  7. TextStyle? style,
  8. bool selectable = true,
  9. TextDirection textDirection = TextDirection.ltr,
})

Implementation

const WordSelectableText(
    {Key? key,
    required this.text,
    this.onWordTapped,
    this.highlight = true,
    this.highlightColor,
    this.alphabets = '[a-zA-Z]',
    this.style,
    this.selectable = true,
    this.textDirection = TextDirection.ltr})
    : super(key: key);