decodeChildren function
Implementation
List<NapaWidget>? decodeChildren(List<dynamic>? children) {
if (children == null) {
return null;
}
List<NapaWidget> toReturn = [];
for (var child in children) {
var widget = NapaWidget.decode(child);
if (widget != null) {
toReturn.add(widget);
}
}
return toReturn;
}