mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-09-07 19:46:06 +00:00
Restore _getString helper
This commit is contained in:
parent
8d40bd70d7
commit
7875edddf5
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue