copy method Null safety

AppStorePreReleaseVersion copy(
  1. {String? type,
  2. String? id,
  3. AppStorePreReleaseVersionAttributes? attributes}
)

Creates a copy of this version overriding the old values if new ones are provided.

Implementation

AppStorePreReleaseVersion copy({
  String? type,
  String? id,
  AppStorePreReleaseVersionAttributes? attributes,
}) {
  return AppStorePreReleaseVersion(
    type: type ?? this.type,
    id: id ?? this.id,
    attributes: attributes ?? this.attributes,
  );
}