Restore _getString helper
This commit is contained in:
parent
8d40bd70d7
commit
7875edddf5
|
@ -37,6 +37,14 @@ class Settings {
|
||||||
_set('logWrap', enabled);
|
_set('logWrap', enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String _getString(String key, String defaultValue) {
|
||||||
|
final val = _settings[key];
|
||||||
|
if (val is String) {
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
bool _getBool(String key, bool defaultValue) {
|
bool _getBool(String key, bool defaultValue) {
|
||||||
final val = _settings[key];
|
final val = _settings[key];
|
||||||
if (val is bool) {
|
if (val is bool) {
|
||||||
|
|
Loading…
Reference in New Issue