Restore _getString helper

This commit is contained in:
Ian VanSchooten 2024-09-20 12:56:36 -04:00
parent 8d40bd70d7
commit 7875edddf5
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,14 @@ class Settings {
_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) {
final val = _settings[key];
if (val is bool) {