Package constructor

Package({
  1. PackageInfo? info,
  2. String? url,
  3. Timestamp? createdOn,
  4. String? checksum,
  5. String? id,
})

Implementation

factory Package({
  PackageInfo? info,
  $core.String? url,
  $44.Timestamp? createdOn,
  $core.String? checksum,
  $core.String? id,
}) {
  final $result = create();
  if (info != null) {
    $result.info = info;
  }
  if (url != null) {
    $result.url = url;
  }
  if (createdOn != null) {
    $result.createdOn = createdOn;
  }
  if (checksum != null) {
    $result.checksum = checksum;
  }
  if (id != null) {
    $result.id = id;
  }
  return $result;
}