getElementwithkey method Null safety
- String key
Search in the _SecItem List _items after the key and return the value
Implementation
String getElementwithkey(String key) {
for (var i = 0; i < _items.length; i++) {
if (_items[i].key == key) {
return _items[i].value;
}
}
return "";
}