extension_general_lib_getData method
Implementation
dynamic extension_general_lib_getData({
required String key,
}) {
final List<String> datas = key.split(".");
dynamic state_data;
for (var index = 0; index < datas.length; index++) {
final dynamic data_key = datas[index];
if (index == 0) {
state_data = this[data_key];
continue;
}
if (state_data == null) {
return null;
}
state_data = state_data[data_key];
}
return state_data;
}