HavenGlobalPrefsModel constructor
HavenGlobalPrefsModel({
- String? defaultEnvironment,
- String? lastUpdateCheck,
- String? lastUpdateNotification,
- bool? enableUpdateCheck,
- bool? enableProfileUpdate,
- String? profileOverride,
- Iterable<
String> ? projectDotfiles, - String? lastUpdateNotificationCommand,
- String? pubCacheDir,
- String? flutterGitUrl,
- String? engineGitUrl,
- String? dartSdkGitUrl,
- String? releasesJsonUrl,
- String? flutterStorageBaseUrl,
- bool? shouldInstall,
- 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;
}