copyWith method

HighlightItem copyWith({
  1. TextRange? range,
  2. String? text,
  3. TextStyle? textStyle,
  4. dynamic customConfig,
})

Implementation

HighlightItem copyWith(
    {TextRange? range,
    String? text,
    TextStyle? textStyle,
    dynamic customConfig}) {
  return HighlightItem(
      range: range ?? this.range,
      text: text ?? this.text,
      textStyle: textStyle ?? this.textStyle,
      customConfig: customConfig ?? this.customConfig);
}