HavenGlobalPrefsModel constructor

HavenGlobalPrefsModel({
  1. String? defaultEnvironment,
  2. String? lastUpdateCheck,
  3. String? lastUpdateNotification,
  4. bool? enableUpdateCheck,
  5. bool? enableProfileUpdate,
  6. String? profileOverride,
  7. Iterable<String>? projectDotfiles,
  8. String? lastUpdateNotificationCommand,
  9. String? pubCacheDir,
  10. String? flutterGitUrl,
  11. String? engineGitUrl,
  12. String? dartSdkGitUrl,
  13. String? releasesJsonUrl,
  14. String? flutterStorageBaseUrl,
  15. bool? shouldInstall,
  16. bool? legacyPubCache,
})

Implementation

factory HavenGlobalPrefsModel({
  $core.String? defaultEnvironment,
  $core.String? lastUpdateCheck,
  $core.String? lastUpdateNotification,
  $core.bool? enableUpdateCheck,
  $core.bool? enableProfileUpdate,
  $core.String? profileOverride,
  $core.Iterable<$core.String>? projectDotfiles,
  $core.String? lastUpdateNotificationCommand,
  $core.String? pubCacheDir,
  $core.String? flutterGitUrl,
  $core.String? engineGitUrl,
  $core.String? dartSdkGitUrl,
  $core.String? releasesJsonUrl,
  $core.String? flutterStorageBaseUrl,
  $core.bool? shouldInstall,
  $core.bool? legacyPubCache,
}) {
  final result = create();
  if (defaultEnvironment != null) result.defaultEnvironment = defaultEnvironment;
  if (lastUpdateCheck != null) result.lastUpdateCheck = lastUpdateCheck;
  if (lastUpdateNotification != null)
    result.lastUpdateNotification = lastUpdateNotification;
  if (enableUpdateCheck != null) result.enableUpdateCheck = enableUpdateCheck;
  if (enableProfileUpdate != null) result.enableProfileUpdate = enableProfileUpdate;
  if (profileOverride != null) result.profileOverride = profileOverride;
  if (projectDotfiles != null) result.projectDotfiles.addAll(projectDotfiles);
  if (lastUpdateNotificationCommand != null)
    result.lastUpdateNotificationCommand = lastUpdateNotificationCommand;
  if (pubCacheDir != null) result.pubCacheDir = pubCacheDir;
  if (flutterGitUrl != null) result.flutterGitUrl = flutterGitUrl;
  if (engineGitUrl != null) result.engineGitUrl = engineGitUrl;
  if (dartSdkGitUrl != null) result.dartSdkGitUrl = dartSdkGitUrl;
  if (releasesJsonUrl != null) result.releasesJsonUrl = releasesJsonUrl;
  if (flutterStorageBaseUrl != null)
    result.flutterStorageBaseUrl = flutterStorageBaseUrl;
  if (shouldInstall != null) result.shouldInstall = shouldInstall;
  if (legacyPubCache != null) result.legacyPubCache = legacyPubCache;
  return result;
}