value property Null safety
Implementation
T get value {
dynamic res = ref.value;
_getKeylist.forEach((ele) {
res = res?[ele];
});
return res;
}
Implementation
set value(T data) {
dynamic res = ref.value;
for (var i = 0; i < _getKeylist.length; i++) {
dynamic ele = _getKeylist[i];
if (i == _getKeylist.length - 1) {
res?[ele] = data;
} else {
res = res?[ele];
}
}
ref.value = ref;
}