Returns a new instance by overriding the values passed as arguments
YSnapshot copyWith({ int /*U32*/ ? ref, }) => YSnapshot(ref: ref ?? this.ref);