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