trueList function
dynamic
trueList(
- dynamic list
Implementation
trueList(list) {
var items=<String>[];
try{
if(list is Map<String,dynamic>)
list.forEach((key, value) {
if(value==true)
items.add(key);
});
else {printO("ListCheck ${list.runtimeType}");
if(list!=null && list.length>0)
list.forEach(( value) {
printO("ItemCheck@ ${value}");
items.add(value.toString());
});}
}catch(e){
printO("Error $e");
};
return items;
}