copyWith method

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

Implementation

MatchedSubstring copyWith({int? length, int? offset}) {
  return MatchedSubstring(
    length: length ?? this.length,
    offset: offset ?? this.offset,
  );
}