Source constructor

Source({
  1. StorageSource? storageSource,
  2. RepoSource? repoSource,
})

Implementation

factory Source({
  StorageSource? storageSource,
  RepoSource? repoSource,
}) {
  final $result = create();
  if (storageSource != null) {
    $result.storageSource = storageSource;
  }
  if (repoSource != null) {
    $result.repoSource = repoSource;
  }
  return $result;
}