copyWith method

Position copyWith({
  1. Path? path,
  2. int? offset,
})

Implementation

Position copyWith({Path? path, int? offset}) {
  return Position(
    path: path ?? this.path,
    offset: offset ?? this.offset,
  );
}