MarkText.rich constructor

MarkText.rich(
  1. TextSpan textSpan,
  2. {Key key,
  3. TextStyle style,
  4. TextAlign textAlign: TextAlign.start,
  5. TextDirection textDirection,
  6. Radius cursorRadius,
  7. Color cursorColor,
  8. DragStartBehavior dragStartBehavior: DragStartBehavior.down,
  9. bool enableInteractiveSelection: true,
  10. GestureTapCallback onTap,
  11. @required Color markColor,
  12. @required HandleMark handlerMark,
  13. @required List<TextSelection> markList}
)

Implementation

MarkText.rich(
  this.textSpan, {
  Key key,
  this.style,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.cursorRadius,
  this.cursorColor,
  this.dragStartBehavior = DragStartBehavior.down,
  this.enableInteractiveSelection = true,
  this.onTap,
  @required this.markColor,
  @required this.handlerMark,
  @required this.markList,
})  : assert(textSpan != null),
      text = null,
      super(key: key);