Skip to content

Commit b3b3127

Browse files
committed
Update settings_model.dart
1 parent 4473bce commit b3b3127

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/models/settings_model.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class SettingsModel {
1717
this.historyRetentionPeriod = HistoryRetentionPeriod.oneWeek,
1818
this.workspaceFolderPath,
1919
this.isSSLDisabled = false,
20+
this.isDashBotEnabled = true,
2021
});
2122

2223
final bool isDark;
@@ -31,6 +32,7 @@ class SettingsModel {
3132
final HistoryRetentionPeriod historyRetentionPeriod;
3233
final String? workspaceFolderPath;
3334
final bool isSSLDisabled;
35+
final bool isDashBotEnabled;
3436

3537
SettingsModel copyWith({
3638
bool? isDark,
@@ -45,6 +47,7 @@ class SettingsModel {
4547
HistoryRetentionPeriod? historyRetentionPeriod,
4648
String? workspaceFolderPath,
4749
bool? isSSLDisabled,
50+
bool? isDashBotEnabled,
4851
}) {
4952
return SettingsModel(
5053
isDark: isDark ?? this.isDark,
@@ -61,6 +64,7 @@ class SettingsModel {
6164
historyRetentionPeriod ?? this.historyRetentionPeriod,
6265
workspaceFolderPath: workspaceFolderPath ?? this.workspaceFolderPath,
6366
isSSLDisabled: isSSLDisabled ?? this.isSSLDisabled,
67+
isDashBotEnabled: isDashBotEnabled ?? this.isDashBotEnabled,
6468
);
6569
}
6670

@@ -80,6 +84,7 @@ class SettingsModel {
8084
historyRetentionPeriod: historyRetentionPeriod,
8185
workspaceFolderPath: workspaceFolderPath,
8286
isSSLDisabled: isSSLDisabled,
87+
isDashBotEnabled: isDashBotEnabled,
8388
);
8489
}
8590

@@ -134,6 +139,7 @@ class SettingsModel {
134139
}
135140
final workspaceFolderPath = data["workspaceFolderPath"] as String?;
136141
final isSSLDisabled = data["isSSLDisabled"] as bool?;
142+
final isDashBotEnabled = data["isDashBotEnabled"] as bool?;
137143

138144
const sm = SettingsModel();
139145

@@ -151,6 +157,7 @@ class SettingsModel {
151157
historyRetentionPeriod ?? HistoryRetentionPeriod.oneWeek,
152158
workspaceFolderPath: workspaceFolderPath,
153159
isSSLDisabled: isSSLDisabled,
160+
isDashBotEnabled: isDashBotEnabled,
154161
);
155162
}
156163

@@ -170,6 +177,7 @@ class SettingsModel {
170177
"historyRetentionPeriod": historyRetentionPeriod.name,
171178
"workspaceFolderPath": workspaceFolderPath,
172179
"isSSLDisabled": isSSLDisabled,
180+
"isDashBotEnabled": isDashBotEnabled,
173181
};
174182
}
175183

@@ -194,7 +202,8 @@ class SettingsModel {
194202
other.activeEnvironmentId == activeEnvironmentId &&
195203
other.historyRetentionPeriod == historyRetentionPeriod &&
196204
other.workspaceFolderPath == workspaceFolderPath &&
197-
other.isSSLDisabled == isSSLDisabled;
205+
other.isSSLDisabled == isSSLDisabled &&
206+
other.isDashBotEnabled == isDashBotEnabled;
198207
}
199208

200209
@override
@@ -213,6 +222,7 @@ class SettingsModel {
213222
historyRetentionPeriod,
214223
workspaceFolderPath,
215224
isSSLDisabled,
225+
isDashBotEnabled,
216226
);
217227
}
218228
}

0 commit comments

Comments
 (0)