copyWith method

Word copyWith({
  1. String? word,
  2. Rect? rect,
  3. TextRange? range,
})

Implementation

Word copyWith({
  String? word,
  Rect? rect,
  TextRange? range,
}) {
  return Word(
    word: word ?? this.word,
    rect: rect ?? this.rect,
    range: range ?? this.range,
  );
}