apply method
void
apply()
Implementation
void apply() {
for (var entry in pref.entries) {
_self._preference[entry.key] = entry.value;
var args = Map();
args[_PARAM_NAME] = _self._name;
args[_PARAM_MODE] = _self._mode;
args[_PARAM_KEY] = entry.key;
args[_PARAM_VALUE] = entry.value;
args[_PARAM_USE_DEVICE_PROTECTED_STORAGE] =
_self.useDeviceProtectedStorage;
if (entry.value is int) {
invokeMethod(_PUT_INT, args);
} else if (entry.value is Float) {
invokeMethod(_PUT_FLOAT, args);
} else if (entry.value is String) {
invokeMethod(_PUT_STRING, args);
} else if (entry.value is bool) {
invokeMethod(_PUT_BOOLEAN, args);
}
}
}