copyWith method

TextRange copyWith({
  1. int? offset,
  2. int? length,
})

Implementation

TextRange copyWith({
  int? offset,
  int? length,
}) =>
    TextRange(
      offset: offset ?? this.offset,
      length: length ?? this.length,
    );