copyWith method

CodeLinePosition copyWith({
  1. int? index,
  2. int? offset,
  3. TextAffinity? affinity,
})

Implementation

CodeLinePosition copyWith({
  int? index,
  int? offset,
  TextAffinity? affinity
}) {
  return CodeLinePosition(
    index: index ?? this.index,
    offset: offset ?? this.offset,
    affinity: affinity ?? this.affinity,
  );
}