PackageStatus constructor

PackageStatus({
  1. String? name,
  2. PackageType? type,
  3. PackageStatus_State? state,
  4. String? error,
  5. Timestamp? lastUpdated,
  6. String? version,
  7. Int64? bytesDownloaded,
  8. Int64? totalBytes,
})

Implementation

factory PackageStatus({
  $core.String? name,
  $1.PackageType? type,
  PackageStatus_State? state,
  $core.String? error,
  $50.Timestamp? lastUpdated,
  $core.String? version,
  $fixnum.Int64? bytesDownloaded,
  $fixnum.Int64? totalBytes,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (type != null) {
    $result.type = type;
  }
  if (state != null) {
    $result.state = state;
  }
  if (error != null) {
    $result.error = error;
  }
  if (lastUpdated != null) {
    $result.lastUpdated = lastUpdated;
  }
  if (version != null) {
    $result.version = version;
  }
  if (bytesDownloaded != null) {
    $result.bytesDownloaded = bytesDownloaded;
  }
  if (totalBytes != null) {
    $result.totalBytes = totalBytes;
  }
  return $result;
}